magic-home-led
Version:
Magic Home / Magic Hue LED strip controller
13 lines (9 loc) • 413 B
Markdown
# `RGB` Class
The `RGB` class represents an RGB color. It allows you to create an RGB color instance and use it to set the color of the LED strip.
## Constructor
```javascript
const RGB = new require('magic-home-led').RGB(red, green, blue);
```
- `red`: The red component of the color (0-255).
- `green`: The green component of the color (0-255).
- `blue`: The blue component of the color (0-255).