UNPKG

magic-home-led

Version:
13 lines (9 loc) 413 B
# `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).