|
Sudoku Showcase
|
Represents a validated RGB color value. More...
Public Member Functions | |
| def | __init__ (self, int red, int green, int blue) |
| def | __repr__ (self) |
| The string-repr of an RGB tuple. More... | |
| str | __str__ (self) |
| The string-repr of an RGB tuple. More... | |
| int | red (self) |
| Returns the value for Red. More... | |
| int | green (self) |
| Returns the value for Green. More... | |
| int | blue (self) |
| Returns the value for Blue. More... | |
Static Public Attributes | |
| int | MAX_VALUE = 255 |
Represents a validated RGB color value.
The RGB class stores a color as three integer components (red, green, blue) and enforces strict bounds checking (0–255) on initialization. It provides read-only access to individual color channels and is intended as a safe, immutable representation of RGB-based UI colors.
| def themes.RGB.__init__ | ( | self, | |
| int | red, | ||
| int | green, | ||
| int | blue | ||
| ) |
| def themes.RGB.__repr__ | ( | self | ) |
The string-repr of an RGB tuple.
| str themes.RGB.__str__ | ( | self | ) |
The string-repr of an RGB tuple.
| int themes.RGB.blue | ( | self | ) |
Returns the value for Blue.
| int themes.RGB.green | ( | self | ) |
Returns the value for Green.
| int themes.RGB.red | ( | self | ) |
Returns the value for Red.
|
static |