JSFiddle - React, Tailwind, and code Playground

by Michael Dibbets

JavaScript

export default class clr = {
    var h = 0,
        s = 0,
        v = 0,

        r = 0,
        g = 0,
        b = 0,

        hex = "";

    function createHsv(H, S, V) {
        var temp = Object.createHSV(this);
        temp.h = H;
        temp.s = S;
        temp.v = V;
        //find a way to set the RGB values
        return temp;
    };

    function createRgb(R, G, B) {
        var temp = Object.createRGB(this);
        temp.r = R;
        temp.g = G;
        temp.b = B;
        //find a way to set the HSV values
        return temp;
    };
};