Skip to content
doyousketch2 edited this page Sep 6, 2019 · 6 revisions

Color_Chooser:

Corresponds to: Fl_Color_Chooser

Inherits from: Widget

  • 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)

  • obj:rgb( double Red, double Green, double Blue ) ==> bool new (1 if new, 0 was previous)
  • obj:hsv( double Hue, double Saturation, double Value ) ==> bool new (1 if new, 0 was previous)
  • methods defined for the Widget userdata type
  • obj.r ==> double Red get
  • obj.g ==> double Green get
  • obj.b ==> double Blue get
  • obj.hue ==> double Hue get
  • obj.saturation ==> double Sat get
  • obj.value ==> double Value get
  • obj.mode ==> int mode get (see below)
  • obj.mode = int mode set (see below)
  • properties defined for the Widget userdata type

(note: Color_Chooser does not inherit the methods and properties of Group, although Fl_Color_Chooser is implemented as a sub-class of Fl_Group!)

Color modes are rgb(0), byte(1), hex(2), or hsv(3)

Related functions: Fl_Color

Clone this wiki locally