RGB Color Toggle

If you liked this item, please rate it up on Steam Workshop page.

Author: XLjedi

Last revision: 19 Jun, 2020 at 16:11 UTC

File size: 32.77 KB

On Steam Workshop

Description:

Alternates between two RGB colors for an On/Off input condition.

Includes 3 RGB color sliders between 0-255 for two different colors. This is handy if you want to match the RGB lights to other non-RGB light colors using the 0-255 colors that you see in your in-game color selector.

This is a 1×3 block with two On/Off inputs and one Composite output to attach to an RGB light.

One of the On/Off inputs controls which color is used for the light. On = Color 1 and Off = Color 2
There is a "Swap Color" property that can also be toggled On/Off to swap these.

The other On/Off input overrides both Color 1 and Color 2 with the RGB color (0,0,0) which turns the light Off. By default, this input is Off, so the light is off. RGB lights are considered Off when the color is set to (0,0,0). When they are off (0,0,0) they also draw no power. This allows for a convenient On/Off light switch similar to the non-RGB lights.

I find this MC is useful for displaying things like a Red/Green indicator light for a door being locked. …and other similar applications.