Re: wxEuphoria - color_selector()
- Posted by Jerry Story <jstory at ocii.com> Sep 25, 2006
- 651 views
Matt Lewis wrote: > You can use these functions to get the color components: > > }}} <eucode> > --/topic wxColour > --/func get_red( atom color ) > -- > --Returns the red intensity of a wxColour. > global function get_red( atom color ) > return and_bits(call_member( wxColour_Red, color, {} ), #FF) > end function > > --/topic wxColour > --/func get_green( atom color ) > -- > --Returns the green intensity of a wxColour. > global function get_green( atom color ) > return and_bits(call_member( wxColour_Green, color, {} ), #FF) > end function > > --/topic wxColour > --/func get_blue( atom color ) > -- > --Returns the blue intensity of a wxColour. > global function get_blue( atom color ) > return and_bits(call_member( wxColour_Blue, color, {} ), #FF) > end function > </eucode> {{{ Thanks. It works.