Globals / "structs/light" / Light
Manages the state of a specific light. Mutations here will be directly visible on your lights as long as they aren't overwritten by an effect.
- Light
• blue: number = 255
Defined in src/structs/light.ts:36
• brightness: number = 255
Defined in src/structs/light.ts:37
• gamut: ColorGamut | null = null
Defined in src/structs/light.ts:38
• green: number = 255
Defined in src/structs/light.ts:35
• id: number
Defined in src/structs/light.ts:33
• red: number = 255
Defined in src/structs/light.ts:34
• get frame(): Frame
Defined in src/structs/light.ts:40
Returns: Frame
▸ Static
make(api
: Api, id
: number | string): Promise<Light>
Defined in src/structs/light.ts:21
Name | Type |
---|---|
api |
Api |
id |
number | string |
Returns: Promise<Light>