https://github.com/osprogramadores/shapes-and-math
Shapes and Math is a set of JavaScript routines to demonstrate the use of CANVAS and some basic drawing functions.
https://github.com/osprogramadores/shapes-and-math
canvas drawing-functions geometry geometry2d javascript-routines math
Last synced: 3 days ago
JSON representation
Shapes and Math is a set of JavaScript routines to demonstrate the use of CANVAS and some basic drawing functions.
- Host: GitHub
- URL: https://github.com/osprogramadores/shapes-and-math
- Owner: OsProgramadores
- Created: 2016-12-04T05:08:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-07T04:03:20.000Z (about 1 month ago)
- Last Synced: 2025-04-07T05:19:59.455Z (about 1 month ago)
- Topics: canvas, drawing-functions, geometry, geometry2d, javascript-routines, math
- Language: JavaScript
- Homepage: https://osprogramadores.github.io/shapes-and-math/
- Size: 82 KB
- Stars: 17
- Watchers: 2
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Shapes and Math is a set of JavaScript routines to demonstrate the use of CANVAS and some basic 2d drawing functions.
**Developed by Marcelo Pinheiro**
[@mpinheir](http://twitter.com/mpinheir "Twitter")
Email: [[email protected]](mailto:[email protected] "Email")You can [try Shapes and Math](https://osprogramadores.github.io/shapes-and-math/ "Shapes and Math page")
## How to run unit tests
This project contains some unit tests and they must pass to contribution be approved. So, please, check if they are passing in your machine before opening the PR.
The steps to execute the unit tests:
1. You should install the Node 22 in your machine. For Linux and Mac a good option to install and manage node versions is through [NVM](https://github.com/nvm-sh/nvm)
2. Install dependencies:
```bash
$ npm ci
```3. Execute unit tests
```bash
$ npm run test
```