Skip to content

Releases: Schulich-Ignite/spark

v0.1.3

17 Mar 01:45
38c21ca
Compare
Choose a tag to compare

User Changes

  • Added translate(x, y) and scale(n) functions to complement rotate(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

18 Feb 05:09
0ee7b2a
Compare
Choose a tag to compare

User Changes:

  • Added rotate(r) function
    • Rotates canvas cursor r radians around the origin (0, 0) clockwise
  • Fixed bug where circle or ellipse with diameter 0 will throw an error. New behaviour is to draw nothing

V0.1.1

25 Nov 07:56
3b1f6df
Compare
Choose a tag to compare

User changes

  • Expose a global function called [color()](Docs link here)
  • Added global functions bounding_box(x, y, w, h), collided(bb1, bb2), and axis_overlapping(point1, length1, point2, length2)
    • Return type of bounding_box is a tuple, and collided can accept either a 4-element tuple or a 4-element list in lieu of a bounding box
  • 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) and stroke_square(x, y, length)
  • Added key_held(string) (acts similar to keys_held(*strings))

Developer changes

  • Added snek game as example under exercises

Version 0.1.0

11 Nov 04:36
9a6048d
Compare
Choose a tag to compare

User improvements

Developer improvements

  • Added initial developer docs
  • Moved existing functions into more appropriate locations

Release 0.0.13

31 Oct 03:06
78dfef2
Compare
Choose a tag to compare
  • 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

24 Oct 13:35
73158b5
Compare
Choose a tag to compare
  • Fixed error with out of bounds arguments

Release 0.0.11

24 Oct 02:17
33445d2
Compare
Choose a tag to compare
  • 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

17 Oct 16:06
e7fa073
Compare
Choose a tag to compare
  • Fixed error when using print() function prior to starting canvas

Release 0.0.9

17 Oct 05:08
cf5caf3
Compare
Choose a tag to compare
  • 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

17 Oct 01:58
14e44e9
Compare
Choose a tag to compare
  • Fixed bug which prevents canvas from restarting once stopped