This is the description of standalone Python functions in the cubecolourdialog module.
AngleFromPoint | Returns the angle between the x-axis and the line connecting the center and the point pt. |
Distance | Returns the distance between 2 points. |
DrawCheckerBoard | Draws a checkerboard on a wx.DC. |
FindC | Internal function. |
Intersection | Calculates the intersection point between 2 lines. |
PointOnLine | Internal function. |
PtFromAngle | Given the angle with respect to the x-axis, returns the point based on the saturation value. |
RestoreOldDC | Restores the old settings for a wx.DC. |
Slope | Calculates the slope of the line connecting 2 points. |
deg2rad | Transforms degrees into radians. |
rad2deg | Transforms radians into degrees. |
rgb2html | Transforms a RGB triplet into an html hex string. |
scaletomax | Normalize a value as a function of the radius. |
toscale | Normalize a value as a function of the radius. |
Returns the angle between the x-axis and the line connecting the center and the point pt.
Parameters: |
|
---|
Draws a checkerboard on a wx.DC.
Parameters: |
|
---|
Note
Used for the Alpha channel control and the colour panels.
Calculates the intersection point between 2 lines.
Parameters: |
|
---|
Given the angle with respect to the x-axis, returns the point based on the saturation value.
Parameters: |
|
---|
Restores the old settings for a wx.DC.
Parameters: |
---|
Transforms degrees into radians.
Parameters: | x – a float representing an angle in degrees. |
---|
Transforms radians into degrees.
Parameters: | x – a float representing an angle in radians. |
---|
Transforms a RGB triplet into an html hex string.
Parameters: | colour – a tuple of red, green, blue integers. |
---|
Normalize a value as a function of the radius.
Parameters: | x – a float value to normalize |
---|
Normalize a value as a function of the radius.
Parameters: | x – a float value to normalize |
---|