Options
All
  • Public
  • Public/Protected
  • All
Menu

Classes and type definitions to handle colors.

This module is exported from the main module, like components.

Example:

// Javascript:
const color = require('@synesthesia-project/light-desk').color;
const c = new color.RGBColor(255, 0, 0);

// TypeScript:
import {color} from '@synesthesia-project/light-desk';
const c = new color.RGBColor(255, 0, 0);

Index

Classes

Interfaces

Type aliases

Variables

Type aliases

ColorJSON

ColorJSON: RGBColorJSON

An object that can be used directly in JSON to represent a Color

RGBColorJSON

RGBColorJSON: { b: number; g: number; r: number; type: "rgb" }

JSON version of RGBColor

Type declaration

  • b: number
  • g: number
  • r: number
  • type: "rgb"

Variables

COLOR_RGB_WHITE

COLOR_RGB_WHITE: RGBColor = ...

#ffffff

Generated using TypeDoc