-
Notifications
You must be signed in to change notification settings - Fork 5
Color_Chooser
doyousketch2 edited this page Sep 13, 2019
·
6 revisions
Corresponds to:
Fl_Color_Chooser
Inherits from:
Widget
Constructors
fl.Color_Chooser( int X, int Y, int W, int H, *str label ) ==> userdata Widget
-
fl.Color_Chooser{ table entries } ==> userdata Widget
( table constructor syntax )
Functions
- methods defined for
Widget
userdata type -
obj:rgb( int Red, int Green, int Blue ) ==> bool new
( 1 if new, 0 was previous )
-
obj:hsv( int Hue, int Saturation, int Value ) ==> bool new
( 1 if new, 0 was previous )
Properties
- properties defined for
Widget
userdata type -
obj.r ==> int Red
get -
obj.g ==> int Green
get -
obj.b ==> int Blue
get -
obj.hue ==> int Hue
get -
obj.saturation ==> int Sat
get -
obj.value ==> int Value
get -
obj.mode ==> int mode
getobj.mode = int mode
set
select mode:- rgb ( 0 )
- byte ( 1 )
- hex ( 2 )
- hsv ( 3 )
( note: Color_Chooser
does not inherit methods and properties of Group
,
although Fl_Color_Chooser
is implemented as a sub-class of Fl_Group
! )
Related functions: Fl_Color