How to use the color-string.keyword function in color-string

To help you get started, we’ve selected a few color-string examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nodebotsau / simplebot / lib / pixel.js View on Github external
// set using rgb value
        pixelcolor = options.rgb || null;
    } else {
        return pixel.color;
    }

    if (pixelcolor != null) {
        // fill out the values for the pixel and then send the message to update
        // it on the strip

        with (pixel.color) {
            r = pixelcolor[0];
            g = pixelcolor[1];
            b = pixelcolor[2];
            hexcode = ColorString.hexString(pixelcolor);
            color = ColorString.keyword(pixelcolor);
            rgb = pixelcolor;
        }

        color = ColorString.colorValue(pixelcolor);
        if (sendmsg) {
            var msg = "{" + pixel.addr + ":" + color + "}";
            pixel.firmata.sp.write(makeSysExString(msg));
        }
    } else {
        console.log("color supplied couldn't be parsed: " + pixelcolor);
    }
};
github Qix- / color / index.js View on Github external
keyword: function () {
		return string.keyword(this.values.rgb, this.values.alpha);
	},
github decentraland / editor-legacy / node_modules / color / index.js View on Github external
keyword: function () {
		return string.keyword(this.values.rgb, this.values.alpha);
	},
github Qix- / color / color-0.5.0.js View on Github external
keyword: function() {
      return string.keyword(this.values.rgb, this.values.alpha);
   },
github awemulya / kobo-predict / uis_r_us / static / js / libs / color.js View on Github external
keyword: function() {
         return string.keyword(values.rgb, values.alpha);
      },
github SmallImprovements / jquery.smallimap / js / contrib / color-0.4.1.js View on Github external
keyword: function() {
      return string.keyword(this.values.rgb, this.values.alpha);
   },
github FredHutch / Oncoscape / client / node_modules / color / index.js View on Github external
keyword: function() {
      return string.keyword(this.values.rgb, this.values.alpha);
   },
github tessera-metrics / tessera / tessera / static / js / color-0.7.1.js View on Github external
keyword: function() {
      return string.keyword(this.values.rgb, this.values.alpha);
   },
github shama / button-styles / bundle.js View on Github external
keyword: function () {
		return string.keyword(this.values.rgb, this.values.alpha);
	},