Method summary
- __init__(self, function_control, name, rgb_color, channel_index, channel_mode)
- get_index_pos(self, idx)
- get_index_value(self, y)
- get_pos_index(self, f)
- get_value(self, color)
- get_value_index(self, color)
- paint(self, deviceContext)
- set_value(self, color, new_value_on_this_channel)
- set_value_index(self, color, y)
Methods
- __init__(self, function_control, name, rgb_color, channel_index, channel_mode)
arguments documented in function body
- get_index_pos(self, idx)
Return gradient position f in [0..1] for x-index Idx in [0..ControlWidth-1]
- get_index_value(self, y)
Get value in [0..1] of height index y
- get_pos_index(self, f)
Return x-index for gradient position f in [0..1]
- get_value(self, color)
Return height value of the current channel for the given color. Range: 0..1
- get_value_index(self, color)
Return height index of channel value of Color. Range: [1..ControlHeight]
- paint(self, deviceContext)
Paint current channel into Canvas (a canvas of a function control object).
Contents of the canvas are not deleted prior to painting, so more than one channel can be painted into the same canvas.
- set_value(self, color, new_value_on_this_channel)
Color will be modified: NewValue.. will be set to the color channel that *self represents.
- set_value_index(self, color, y)
Color will be modified: the value assigned to the height index y will be set to the color channel of Color *self represents.