Skip to content

Commit af2066e

Browse files
committed
v1.1.237-245
* Implemented all remaining PyNumberMethod methods for the C `Colour` class * Changed the `Colour` class's `__round__()` method to round up to 255 when the colour value is greater than 127, compared to the previous 128 * Updated the link to the goopylib Colour doc in the `Colour` class's `__dir__()` function * Defined the `__dir__()`, `__round__()`, `__reversed__()`, & `__contains__()` functions for the C `Colour` class * Added a separate `__contains__()` method for the `ColourHex()` class * Fixed the `Colour_richcompare()` method of the C `Colour` class for the `==` & `!=` operations * Renamed the `update_values()` method of the `Colour` classes to `__update_values()` * Fixed circular import with importing the `Window` while important the `GraphicsObject` module without importing the `Window` module yourself * Fixed issue with incorrectly named module import in `goopylib.sound.waves.py`
1 parent 2186e8d commit af2066e

39 files changed

+3389
-307
lines changed

MANIFEST.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
include goopylib/math/*.pyd
22
include goopylib/math/*.c
3+
include goopylib/math/*.h
4+
include goopylib/math/*.so
35
include goopylib/objects/*.pyd
46
include goopylib/objects/*.c
7+
include goopylib/objects/*.h
8+
include goopylib/objects/*.so
59
include goopylib/*.pyd
610
include goopylib/*.c
11+
include goopylib/*.h
12+
include goopylib/*.so
713
include goopylib/sound/*.pyd
814
include goopylib/sound/*.c
15+
include goopylib/sound/*.h
16+
include goopylib/sound/*.so
917
include goopylib/physics/*.pyd
1018
include goopylib/physics/*.c
19+
include goopylib/physics/*.h
20+
include goopylib/physics/*.so
1121
include goopylib/applications/*.pyd
1222
include goopylib/applications/*.c
23+
include goopylib/applications/*.h
24+
include goopylib/applications/*.so

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,23 @@ https://stackoverflow.com/questions/63978464/error-when-compiling-cpython-cannot
206206
There are probably still a lot of bugs in the release version, but I moved onto Version 1.1 because I started working
207207
on converting goopylib code to Cython C and also building a Sound Engine for goopylib 1.2
208208

209-
#### 1.1.236-alpha21 6th-9th December 2020
209+
#### 1.1.245-alpha22 10th December 2020
210+
211+
* Implemented all remaining PyNumberMethod methods for the C `Colour` class
212+
* Changed the `Colour` class's `__round__()` method to round up to 255 when the colour value is greater than 127,
213+
compared to the previous 128
214+
* Updated the link to the goopylib Colour doc in the `Colour` class's `__dir__()` function
215+
* Defined the `__dir__()`, `__round__()`, `__reversed__()`, & `__contains__()` functions for the C `Colour` class
216+
217+
* Added a separate `__contains__()` method for the `ColourHex()` class
218+
* Fixed the `Colour_richcompare()` method of the C `Colour` class for the `==` & `!=` operations
219+
* Renamed the `update_values()` method of the `Colour` classes to `__update_values()`
220+
* Fixed circular import with importing the `Window` while important the `GraphicsObject` module without importing the
221+
`Window` module yourself
222+
223+
* Fixed issue with incorrectly named module import in `goopylib.sound.waves.py`
224+
225+
#### 1.1.236-alpha21 6th-9th December 2020 - 18212 lines of code!
210226

211227
* Fixed warning with the `string` attribute of the C implementation of the `ColourHex` class in which the `PyObject*`
212228
was being defined to a `char[7]`. It is now defined to a `PyUnicode` object.
@@ -269,6 +285,7 @@ variables
269285
* Reordered the PyNumber Methods of the `Colour` class to follow the order described here:
270286
https://docs.python.org/3/c-api/typeobj.html?highlight=tp_#c.PyNumberMethods
271287

288+
272289
* Changed the `__hex__()` method of the `Colour` class to return a `ColourHex` instance of the same colour as which the
273290
function is used on
274291
* Made the `Colour` class PyNumber Methods faster by replacing the `min([255, ...])` for if statements
11 Bytes
Binary file not shown.
11 Bytes
Binary file not shown.
-81 Bytes
Binary file not shown.
11 Bytes
Binary file not shown.

goopylib/c_colours.pyd

12.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)