Options
All
  • Public
  • Public/Protected
  • All
Menu

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:

Hierarchy

Index

Constructors

Methods

Constructors

constructor

Methods

setColor

Generated using TypeDoc