ruby-****@sourc*****
ruby-****@sourc*****
2013年 4月 23日 (火) 05:40:39 JST
------------------------- REMOTE_ADDR = 70.49.50.179 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-appdx-clrtheory ------------------------- @@ -183,13 +183,11 @@ {{br}} Any complete colour code, a.k.a. color tuple, is composed of three component elements or columns, each of which holds a value in the range 0-255. However, since there are only eight 'defining colours', we need only three or at the most four (see the code for brown colour) of these values to form these eight colours, the remaining values from the byte range (0-255) can then be used to represent all other 16.7M (million) colour combinations or shades. Hence, out of the 256 values that a byte can hold computer scientists reserved three (actually, four) special values from which we build defining colour tuples (codes). Because we are going to talk about all other colours in terms of the defining colours and their component elements it would be convenient to name these special values, used to compose the eight defining colours. - :Three components of the defining colours and their values + :Four components of the defining colours and their values * ((*FF*)) we call ((*full*)) (think of a full brush or can of paint) * ((*80*)) we call ((*half*)) (think of half a brush or a half a can of paint) + * ((*40*)) we call ((*quarter*)) (think of just quarter wet a brush or a quarter full can of paint) * ((*00*)) we call ((*empty*)) (figure it out /hint - no colour/) - - {{br}} - Note: ((*half*))can actually contain either((*80*))or((*40;*)) (see the defining colour code for colour brown.) Using the above convention, the defining colour code can be defined as follows: