Light Component: Difference between revisions
m (2 revisions imported) |
(added color setting explanation) |
||
Line 20: | Line 20: | ||
It is most commonly used for showing the state of [[Installations]] or other Electrical items. | It is most commonly used for showing the state of [[Installations]] or other Electrical items. | ||
==Color Setting== | |||
Color can be set manually or by sending a signal to the Set_Color pin. | |||
'''<big>Manual</big>'''<br> | |||
When rewiring any light or lamp, the color selector is shown at the bottom right of the screen. RGBA (red, green, blue, alpha) values can be set in decimal values ranging from 0 to 255.<br> | |||
The first three settings, Red, Green and Blue, determine the color; setting R: 255, G: 0 and B: 0 will result in a red light. R: 255, G: 165 and B: 0 will result in an orange light. See [https://en.wikipedia.org/wiki/Web_colors Web Colors].<br> | |||
The fourth setting, Alpha, will effectively translate into the light's intensity; 255 being the brightest, and 0 being equivalent to the light turned off. | |||
'''<big>Signal</big>'''<br> | |||
A signal can be sent to the {{PAGENAME}}'s '''Set_Color''' input. The value can be '''decimal''' (like for the manual setting) if received from a [[Wiring Components#Memory Component|Memory]] or [[Wiring Components#Color Component|Color Component]], or '''hexadecimal''' or '''float''' if received from a [[Wiring Components#Memory Component|Memory Component]]. | |||
For example, to produce <span style="color:#40E0D0">'''turquoise'''</span> light with about half the maximum intensity... | |||
*'''Decimal''' | |||
:...a '''Memory''' or '''Color Component''' will need to output <code>64,224,208,127</code>. In the Color Component's case, this is done by sending each of these values to the respective RGBA inputs. | |||
*'''Hexadecimal''' | |||
:...a '''Memory Component''' will need to output <code>#40E0D07F</code>. | |||
*'''Float''' | |||
:...a '''Memory Component''' will need to output <code>0.25,0.88,0.82,0.5</code>. | |||
In all cases, the Alpha value can be omitted, and will then automatically be interpreted as if set to the maximum: decimal: 255, hexadecimal: FF or float: 1. | |||
<small>Hover over pins to see their descriptions</small> | <small>Hover over pins to see their descriptions</small> |
Revision as of 14:31, 17 February 2021
Light Component | ||||||||
---|---|---|---|---|---|---|---|---|
Inventory icon Sprite | ||||||||
Crafting | ||||||||
Fabricator Requirements |
Skill: Electrical: 20
| |||||||
Deconstructor Yield | ||||||||
|
The Light Component is an electrical component used to provide lighting, without using power.
It is most commonly used for showing the state of Installations or other Electrical items.
Color Setting
Color can be set manually or by sending a signal to the Set_Color pin.
Manual
When rewiring any light or lamp, the color selector is shown at the bottom right of the screen. RGBA (red, green, blue, alpha) values can be set in decimal values ranging from 0 to 255.
The first three settings, Red, Green and Blue, determine the color; setting R: 255, G: 0 and B: 0 will result in a red light. R: 255, G: 165 and B: 0 will result in an orange light. See Web Colors.
The fourth setting, Alpha, will effectively translate into the light's intensity; 255 being the brightest, and 0 being equivalent to the light turned off.
Signal
A signal can be sent to the Light Component's Set_Color input. The value can be decimal (like for the manual setting) if received from a Memory or Color Component, or hexadecimal or float if received from a Memory Component.
For example, to produce turquoise light with about half the maximum intensity...
- Decimal
- ...a Memory or Color Component will need to output
64,224,208,127
. In the Color Component's case, this is done by sending each of these values to the respective RGBA inputs.
- Hexadecimal
- ...a Memory Component will need to output
#40E0D07F
.
- Float
- ...a Memory Component will need to output
0.25,0.88,0.82,0.5
.
In all cases, the Alpha value can be omitted, and will then automatically be interpreted as if set to the maximum: decimal: 255, hexadecimal: FF or float: 1.
Hover over pins to see their descriptions
Connection Panel for Light Component Hover over pins to see their descriptions. | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||
Requires: Screwdriver |
Electrical Components | |
---|---|
Alarms | |
Detectors | |
Interactable | |
Wiring Components | |
Misc |