Types/Color: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
m (Bilka moved page Types/color to Types/Color: classes use capitalized names)
(No difference)

Revision as of 13:30, 10 February 2018

Table of red, green, blue, and alpha float values between 0 and 1. All values are optional, default optional value for colors is 0, for alpha 1.

name meaning type
r red value float
g green value float
b blue value float
a [optional, default 1] alpha value - transparency float

Example

   color = {r=1, g=0, b=0, a=0.5} -- red
   color = {r=1, a=0.5} -- the same red, omitting 0 colors
   color = {} -- black