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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -