https://github.com/charconstpointer/sliderp5
Canvas integrated slider for p5.js
https://github.com/charconstpointer/sliderp5
map p5 p5js slider
Last synced: about 2 months 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 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-23T04:39:52.000Z (about 7 years ago)
- Last Synced: 2024-12-27T09:29:51.886Z (about 1 year 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

```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()
```