A simple rectangle component. Could be used for example to indicate certain states, or represent the color of certain lights or fixtures, or perhaps colours used in a chase.
Example:
const lightDesk = require('@synesthesia-project/light-desk');// ...group.addChild(new lightDesk.Rect(new lightDesk.color.RGBColor(85, 85, 85)));group.addChild(new lightDesk.Rect(new lightDesk.color.RGBColor(255, 255, 0)));group.addChild(new lightDesk.Rect(new lightDesk.color.RGBColor(255, 0, 0)));group.addChild(new lightDesk.Rect(new lightDesk.color.RGBColor(255, 255, 255)));group.addChild(new lightDesk.Rect(new lightDesk.color.RGBColor(200, 200, 200)));
Preview:
Generated using TypeDoc
A simple rectangle component. Could be used for example to indicate certain states, or represent the color of certain lights or fixtures, or perhaps colours used in a chase.
Example:
Preview: