Commit 5352712
committed
Version 1.1.159-176
* You can now use the `set_text()` function for `Entry` objects even if the `Entry` hasn't been drawn
* Fixed the `RandomColourRGB()` function to no longer raise errors if the user hasn't specified the RGB values
* Optimized the error checking in the `RandomColourRGB()` & `RandomGreyscale()` functions by reducing the number of
`not` & `!=`
* Simplified the `RandomColourCMYK()` function and optimized it like with the `RandomColourRGB()` one
* The `RandomColourHex()` function now works if the user hasn't supplied hex values for r, g, & b and optimized the
function to execute faster
* Added a new lists to contain all of `GREENS`, `PURPLES`, etc. and for `WARM COLOURS` and `COOL COLOURS`
* Added a list of all goopylib colours objects
* Added HSV colours to goopylib: a `ColourHSV` class & `RandomColourHSV()` function
* Changed all the `GraphicsError`s in `colours.py` to be raised with a `"GraphicsError:"` prefix
* The `ColourCMYK` class is now printed as `"cmyk c%, m%, y%, k%"` rather than the previous `"cmyk c, m, y, k"`
* The Internal goopylib classes no longer use the `Point` class in favour of an iterable
* Added a few more (7) colour definitions to complete the existing colour scales
* Added HSL colours to goopylib: a `ColourHSL` class & `RandomColourHSL()` function
* Renamed all the functions inside `colours.py` to follow the Python naming convention
* Added American spelling (`color`) equivalents of everything in `colours.py` which references the original functions
* Renamed the `blend_BLENDINGTYPE()` functions to `blend_colour_BLENDINGTYPE()` and added their American equivalents.
* Moved the `random` module's import statement above the `goopylib.math.Interpolations` import statement in `colours.py`
to abide by PEP8
* Created a `color.py` file which simply imports everything from `colours.py`1 parent e53ad8b commit 5352712
File tree
6 files changed
+487
-122
lines changed- goopylib
- applications
- objects
6 files changed
+487
-122
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
209 | 239 | | |
210 | 240 | | |
211 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments