Schulich-ignite

Latest version: v0.1.3

Safety actively analyzes 641134 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.1.3

User Changes
* Added `translate(x, y)` and `scale(n)` functions to complement `rotate(r)`. [See docs here](https://github.com/Schulich-Ignite/spark/blob/main/docs/utilities.md#translate)
* Added `dist(x1, y1, x2, y2)` that calculates the hypotenuse between two points. [See docs here](https://github.com/Schulich-Ignite/spark/blob/main/docs/utilities.md#distance-between-two-points-x1-y1-and-x2-y2)
* Added `FRAME_RATE` variable. [See docs here](https://github.com/Schulich-Ignite/spark/blob/main/docs/utilities.md#accessing-the-canvas-frame-rate)
* Note - This should be treated as a read-only variable and has unexpected behaviours if you try writing into it.

0.1.2

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

0.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)`, 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`

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) or print(x, y, z)
- Added a [random module wrappers](https://github.com/Schulich-Ignite/spark/blob/dev/docs/utilities.md#create-a-random-float-between-0-and-1) to allow for use of [random()](https://docs.python.org/3/library/random.html#random.random) and [randint()](https://docs.python.org/3/library/random.html#random.randint)
- Added initial user docs

Developer improvements
- Added initial developer docs
- Moved existing functions into more appropriate locations

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

0.0.12

- Fixed error with out of bounds arguments

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.