Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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