https://github.com/hosein2398/triangles
πΊπ» Canvas library to create triangle pattern in background πΊπ»
https://github.com/hosein2398/triangles
canvas canvas-library canvas-triangles triangle
Last synced: 11 months ago
JSON representation
πΊπ» Canvas library to create triangle pattern in background πΊπ»
- Host: GitHub
- URL: https://github.com/hosein2398/triangles
- Owner: hosein2398
- License: mit
- Created: 2017-06-22T19:11:06.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-01T16:24:17.000Z (over 8 years ago)
- Last Synced: 2025-04-13T19:17:56.016Z (about 1 year ago)
- Topics: canvas, canvas-library, canvas-triangles, triangle
- Language: JavaScript
- Homepage: https://hosein2398.github.io/triangles/
- Size: 6.84 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Triangle
Canvas library to create triangles on your background.

## Usage
+ Load the library on the page you want to use.
+ Create a canvas with id of 'can' .
``` ```
(Remember to load the library after tag)
+ Create a script like:
```
Triangles();
```
+ Enjoy your background.
## Effects
Currently there are 6 effects available to use. You can only pass in the number of effect you want to use like so:
```JS
Triangles(4);
```
List of effects could be seen [here](https://hosein2398.github.io/triangles/).