getColorFromDialog(red,
green,
blue)
|
|
Opens a color dialog and lets the user choose a color. Actually there
are two versions, the first one with integer and the second one with
float parameters and return values.
- Parameters:
red (integer or float) - The red component of the preset color as integer (value from 0 to
255) or float (value from 0.0 to 1.0).
green (integer or float) - The green component of the preset color as integer (value from 0
to 255) or float (value from 0.0 to 1.0).
blue (integer or float) - The blue component of the preset color as integer (value from 0
to 255) or float (value from 0.0 to 1.0).
- Returns: list of integers or list of floats
- The user-selected colors (element 0 is the red, element 1 is the
green and element 2 is the blue component).
|