From fc1a878290197e5e4ec037e65662a90c8f5ce3a8 Mon Sep 17 00:00:00 2001 From: engelsman Date: Wed, 27 Oct 2010 22:07:55 +0000 Subject: reworked color documentation as suggested in STR #2373 part of the confusion was the main page link to Common Widgets and Attributes/Colors actually went to Drawing Things in FLTK/Colors therefore making it harder to find information. Common Widgets and Attribute/Colors now simplified Drawing Things in FLTK/Colors now expanded FLTK Enumerations/Colors now simplified git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7762 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_color.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/fl_color.cxx b/src/fl_color.cxx index b4cee410b..9c8c4bb25 100644 --- a/src/fl_color.cxx +++ b/src/fl_color.cxx @@ -366,9 +366,6 @@ void Fl::set_color(Fl_Color i, unsigned c) { integer with the red value in the upper 8 bits, the green value in the next 8 bits, and the blue value in bits 8-15. The lower 8 bits will always be 0. - - The second form returns the red, green, and blue values - separately in referenced variables. */ unsigned Fl::get_color(Fl_Color i) { if (i & 0xffffff00) return (i); @@ -383,7 +380,14 @@ void Fl::set_color(Fl_Color i, uchar red, uchar green, uchar blue) { Fl::set_color((Fl_Color)(i & 255), ((unsigned)red<<24)+((unsigned)green<<16)+((unsigned)blue<<8)); } -/** See unsigned get_color(Fl_Color c) */ +/** + Returns the RGB value(s) for the given FLTK color index. + + This form returns the red, green, and blue values + separately in referenced variables. + + See also unsigned get_color(Fl_Color c) + */ void Fl::get_color(Fl_Color i, uchar &red, uchar &green, uchar &blue) { unsigned c; -- cgit v1.2.3