Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/charconstpointer/sliderp5
Canvas integrated slider for p5.js
https://github.com/charconstpointer/sliderp5
map p5 p5js slider
Last synced: 9 days ago
JSON representation
Canvas integrated slider for p5.js
- Host: GitHub
- URL: https://github.com/charconstpointer/sliderp5
- Owner: charconstpointer
- Created: 2018-10-30T17:36:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-23T04:39:52.000Z (about 6 years ago)
- Last Synced: 2024-11-07T05:47:25.608Z (about 2 months ago)
- Topics: map, p5, p5js, slider
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# slider p5.js
Canvas integrated slider![](https://i.gyazo.com/8303c3d74a721150172ab09bfd80421a.png)
```javascript
let slider = new Slider(x, y, width, height, r, g, b, alpha);
```
where x and y are location on the canvas, and rgba are the color values of the slider.#To get slider value use getRGBValue(), which returns value between 0-255, but can be easily tweaked for your needs.
```javascript
slider.getRGBValue()
```