java - which color format is that? -
new color(0.2f, 0.949f, 0.949f, 1); guys i'm editing android application in eclipse , i've encountered color code. i've never seen before. it's not rgb or hex, can me find format of it?
decimal numbers , f
suffix clue these floating-point values. format colors commonly used. each red, green, blue, , alpha value in range 0.0 1.0. can convert these values hex multiplying 255 decimal (0xff
hex) , convert decimal value hex. see the color
constructor documentation details.
Comments
Post a Comment