luncheon / reinvented-color-wheel

A vanilla-js touch-friendly HSV color picker inspired by Farbtastic Color Picker.
https://luncheon.github.io/reinvented-color-wheel/
Do What The F*ck You Want To Public License
59 stars 4 forks source link

Unminified version #18

Closed srochapimenta closed 8 months ago

srochapimenta commented 2 years ago

Hi, thanks for this great color well!

Im using it for light control over esp8266/esp32 with ws1812 led strip, i need to add a public property to allow set color like color.setrgb( x, x, x ), also add range as same style as color well to allow dimming.

i have done some work on it, but minifyed version make it dificult to undertand, can u please share without minify ?

Ps. this is not an issue, just a request.

best regards.

luncheon commented 2 years ago

@srochapimenta Thanks for using it!

i need to add a public property to allow set color like color.setrgb( x, x, x )

You can set the color using color.rgb = [x, x, x].


also add range as same style as color well to allow dimming.

What do you mean by this?


can u please share without minify ?

Unminified version can be imported with the following code:

import ReinventedColorWheel from "reinvented-color-wheel/es/reinvented-color-wheel.bundle.js";

or

<script src="https://cdn.jsdelivr.net/npm/reinvented-color-wheel@0.4.0/iife/reinvented-color-wheel.js"></script>

You can explore the provided files in https://www.jsdelivr.com/package/npm/reinvented-color-wheel.