Re: wxEuphoria - color_selector()

new topic     » goto parent     » topic index » view thread      » older message » newer message

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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu