An open API service indexing awesome lists of open source software.

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 πŸ”ΊπŸ”»

Awesome Lists containing this project

README

          

# Triangle

Canvas library to create triangles on your background.

![Canvas triangles](https://raw.githubusercontent.com/hosein2398/File-Container/master/Trianles/Capture.JPG)

## 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/).