Releases: Schulich-Ignite/spark
Releases · Schulich-Ignite/spark
v0.1.3
User Changes
- Added
translate(x, y)
andscale(n)
functions to complementrotate(r)
. See docs here - Added
dist(x1, y1, x2, y2)
that calculates the hypotenuse between two points. See docs here - Added
FRAME_RATE
variable. See docs here- Note - This should be treated as a read-only variable and has unexpected behaviours if you try writing into it.
v0.1.2
V0.1.1
User changes
- Expose a global function called [color()](Docs link here)
- Added global functions
bounding_box(x, y, w, h)
,collided(bb1, bb2)
, andaxis_overlapping(point1, length1, point2, length2)
- Return type of
bounding_box
is a tuple, andcollided
can accept either a 4-element tuple or a 4-element list in lieu of a bounding box
- Return type of
- Added global function
image(file_name, x, y, w, h)
- WARNING: Image sizes should NOT change over time. Results will be very laggy if you do!
- Added
fill_square(x, y, length)
andstroke_square(x, y, length)
- Added
key_held(string)
(acts similar tokeys_held(*strings)
)
Developer changes
- Added snek game as example under
exercises
Version 0.1.0
User improvements
- Added support for key events: https://github.com/Schulich-Ignite/spark/blob/dev/docs/input.md#check-for-key-presses
- Allowed for print() to take variable number of arguments i.e.
print(x)
orprint(x, y, z)
- Added a random module wrappers to allow for use of random() and randint()
- Added initial user docs
Developer improvements
- Added initial developer docs
- Moved existing functions into more appropriate locations
Release 0.0.13
- Added decorator for global mutable and immutable functions
- Added decorator for checking arguments
- Added random() and randint() functions
- Added function for drawing triangle
- Added function for drawing ellipse
- Moved documentation into main branch
Release 0.0.12
- Fixed error with out of bounds arguments
Release 0.0.11
- Moved fill_style logic from background and fill_style() into common function
- Fixed error with print() function when using non-string
- Added better error handling
- Added text functions
- Added line and draw_line functions
Release 0.0.10
- Fixed error when using print() function prior to starting canvas
Release 0.0.9
- Fixed bug that broke events when re-running the cell
- Fixed background fill_style bug
- Added documentation about updating the library on the platform
Release 0.0.8
- Fixed bug which prevents canvas from restarting once stopped