Maybe a wierd question and/or maybe a good one ^^
Edited by Emil2k, 16 January 2009 - 02:27 PM.
Posted 16 January 2009 - 02:25 PM
Edited by Emil2k, 16 January 2009 - 02:27 PM.
|
|
|
Posted 16 January 2009 - 03:26 PM
It is called "Color Hot-Track".
It works by dynamically abstracting the color values of the application icon to find the most dominant RGB value. So when you hover it over the icon, the glow changes according to the icon color.
Edited by Emil2k, 16 January 2009 - 03:35 PM.
Posted 17 January 2009 - 08:25 AM
But that "tiny green button" has a higher RGB value than the other colors(in that icon), thus, it is painted green.
It works by dynamically abstracting the color values of the application icon to find the most dominant RGB value.
Not quite dominant, try opening Local disk and you'll see that it only has a tiny green button, but the whole rolover is colorized in green
Posted 17 January 2009 - 08:54 AM
It's one of those small things, but it makes the new Taskbar so much more fun to use.
MS did it again! I'll never know how they managed to do this...
Its most likely a simple algorithm and will most likely be tweaked
Posted 17 January 2009 - 09:56 AM
It's one of those small things, but it makes the new Taskbar so much more fun to use.
MS did it again! I'll never know how they managed to do this...
Its most likely a simple algorithm and will most likely be tweaked
If you're good at coding, then even you can write an app which queries for the most dominant RGB value in an icon, and paints the icon with that color.
Posted 17 January 2009 - 10:55 AM
I'm guessing that it also includes algorithms that prevent black and white type colors from being shown. And Black icons with no colors whatsoever (like cmd) are colorized with some light blue.But that "tiny green button" has a higher RGB value than the other colors(in that icon), thus, it is painted green.
It works by dynamically abstracting the color values of the application icon to find the most dominant RGB value.
Not quite dominant, try opening Local disk and you'll see that it only has a tiny green button, but the whole rolover is colorized in green
Posted 17 January 2009 - 11:32 AM
Might be, since Black has RGB values of 0,0,0 and White has 255,255,255, which could cause conflicts for the code(related to this Color Hot-Track) while reporting which color to use.I'm guessing that it also includes algorithms that prevent black and white type colors from being shown. And Black icons with no colors whatsoever (like cmd) are colorized with some light blue.
Posted 17 January 2009 - 05:29 PM
Function AverageRGB(ByRef P As PictureBox) As Long
Dim Count As Long
Dim Red As Long
Dim Green As Long
Dim Blue As Long
Dim Hexed As String
Dim X As Long
Dim Y As Long
Count = 0
For X = 0 To P.Width Step P.Width \ 32
For Y = 0 To P.Height Step P.Height \ 32
Hexed = Right("00000" & Hex(P.Point(X, Y)), 6)
Red = Red + CLng("&h" & Right(Hexed, 2))
Green = Green + CLng("&h" & Mid(Hexed, 3, 2))
Blue = Blue + CLng("&h" & Left(Hexed, 2))
Count = Count + 1
Next
Next
AverageRGB = RGB(Red \ Count, Green \ Count, Blue \ Count)
End FunctionPosted 27 November 2009 - 01:10 PM
ok yall, dont go fawning over this to damn much. i had code in vb that analysed the picture and chose the dominant color some three years ago.
hell, i even had it in a wallpaper changer that would set your desktop background color to the dominant color for a seemless look.
give me a day or so and i will post the code for it in VB here.
it is NOT nothing new.
[edit] found the code some minute after i posted my response, here is the vb6 code.[/edit]Function AverageRGB(ByRef P As PictureBox) As Long Dim Count As Long Dim Red As Long Dim Green As Long Dim Blue As Long Dim Hexed As String Dim X As Long Dim Y As Long Count = 0 For X = 0 To P.Width Step P.Width \ 32 For Y = 0 To P.Height Step P.Height \ 32 Hexed = Right("00000" & Hex(P.Point(X, Y)), 6) Red = Red + CLng("&h" & Right(Hexed, 2)) Green = Green + CLng("&h" & Mid(Hexed, 3, 2)) Blue = Blue + CLng("&h" & Left(Hexed, 2)) Count = Count + 1 Next Next AverageRGB = RGB(Red \ Count, Green \ Count, Blue \ Count) End Function
see? easy math through the use of RGB. Please note that this code is some three YEARS old and stop fawning over MS's shit.
actually i take it back, the code was made in 2002.
Posted 11 October 2010 - 05:38 AM
hell, i even had it in a wallpaper changer that would set your desktop background color to the dominant color for a seemless look.
Posted 16 December 2010 - 01:42 PM
ok yall, dont go fawning over this to damn much. i had code in vb that analysed the picture and chose the dominant color some three years ago.
hell, i even had it in a wallpaper changer that would set your desktop background color to the dominant color for a seemless look.
give me a day or so and i will post the code for it in VB here.
it is NOT nothing new.
[edit] found the code some minute after i posted my response, here is the vb6 code.[/edit]Function AverageRGB(ByRef P As PictureBox) As Long Dim Count As Long Dim Red As Long Dim Green As Long Dim Blue As Long Dim Hexed As String Dim X As Long Dim Y As Long Count = 0 For X = 0 To P.Width Step P.Width \ 32 For Y = 0 To P.Height Step P.Height \ 32 Hexed = Right("00000" & Hex(P.Point(X, Y)), 6) Red = Red + CLng("&h" & Right(Hexed, 2)) Green = Green + CLng("&h" & Mid(Hexed, 3, 2)) Blue = Blue + CLng("&h" & Left(Hexed, 2)) Count = Count + 1 Next Next AverageRGB = RGB(Red \ Count, Green \ Count, Blue \ Count) End Function
see? easy math through the use of RGB. Please note that this code is some three YEARS old and stop fawning over MS's shit.
actually i take it back, the code was made in 2002.
Posted 26 February 2012 - 05:37 PM
ok yall, dont go fawning over this to damn much. i had code in vb that analysed the picture and chose the dominant color some three years ago.
hell, i even had it in a wallpaper changer that would set your desktop background color to the dominant color for a seemless look.
give me a day or so and i will post the code for it in VB here.
it is NOT nothing new.
[edit] found the code some minute after i posted my response, here is the vb6 code.[/edit]Function AverageRGB(ByRef P As PictureBox) As Long Dim Count As Long Dim Red As Long Dim Green As Long Dim Blue As Long Dim Hexed As String Dim X As Long Dim Y As Long Count = 0 For X = 0 To P.Width Step P.Width \ 32 For Y = 0 To P.Height Step P.Height \ 32 Hexed = Right("00000" & Hex(P.Point(X, Y)), 6) Red = Red + CLng("&h" & Right(Hexed, 2)) Green = Green + CLng("&h" & Mid(Hexed, 3, 2)) Blue = Blue + CLng("&h" & Left(Hexed, 2)) Count = Count + 1 Next Next AverageRGB = RGB(Red \ Count, Green \ Count, Blue \ Count) End Function
see? easy math through the use of RGB. Please note that this code is some three YEARS old and stop fawning over MS's shit.
actually i take it back, the code was made in 2002.
Lol, like down south there don't be gettin yall arguaments in none them knots, yall know I mean.
I must disagree by saying that it was a pretty slick achievement. Though that code has not been fitted to a certain project or application, it could probably be easily reconstructed.
But...I have to be honest and say:
Microsoft has outgrown MAC in their visual interface. I'm sorry, but I'm just not a Mac fan!