https://github.com/ninjasort/ninja-canvas
https://github.com/ninjasort/ninja-canvas
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ninjasort/ninja-canvas
- Owner: ninjasort
- Created: 2024-03-02T13:56:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-02T13:58:38.000Z (about 1 year ago)
- Last Synced: 2024-12-27T23:13:16.470Z (5 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ninja Canvas
https://devdocs.io/dom/canvas_api
- arrow
- an arrow that follows mouse position using the angle determined from Math.atan2
- galaxy
- an animation of circles rendered on two layers
- the first layer positions circles using Math.sin and Math.cos with a random value scaled by the division of (Math.PI \* 2)/numObjects
- the second layer positions a circle using Math.sin and Math.cos based on an increasing angle value
- lines
- a random rendering of lines that scale the width and height of the canvas element