[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sc-devel] Color Helpfile / GUI with X Window colors buttons



On Nov 25, 2007, at 9:51 AM, Tom Hall wrote:

(Note I have changed the XWindows data format from
'alice blue' -> Color.new255(240, 248, 255)
to
'alice blue' -> [240, 248, 255]
so as to be able to post the color data in 8-bit format,
otherwise:
a =  'alice blue' -> Color.new255(240, 248, 255)
a.value // => Color(0.94117647058824, 0.97254901960784, 1.0, 1.0)
Unless there is a method to retrieve the 8-bit format from the floats?


0.94117647058824 * 255 == 240


?


hjh



: H. James Harkins

: jamshark70@xxxxxxxxxxxxxxxxx

: http://www.dewdrop-world.net

.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:


"Come said the Muse,

Sing me a song no poet has yet chanted,

Sing me the universal."  -- Whitman