Jump to content

Template:Colors: Difference between revisions

no edit summary
(Created page with "<noinclude>{{doc}}</noinclude>")
 
No edit summary
Line 1: Line 1:
<noinclude>{{doc}}</noinclude>
<includeonly>{{#switch:{{{1}}}
  |dye={{#switch:{{{2}}}<!-- from wool textures, averging all -->
    |black=#1D1D1D
    |blue=#004891
    |brown=#562B00
    |cyan=#00838B
    |dark_green=#206700
    |dark_grey=#3B3B3B
    |green=#5CD81C
    |grey=#5CD81C
    |magenta=#C9036D
    |orange=#D65215
    |pink=#FF8484
    |red=#A81111
    |violet=#5D03A9
    |white=#DCDCDC
    |yellow=#FEE110
    |#default=#000000
  }}
  |line={{#switch:{{{2}}}<!-- from basic_trains/advtrains_train_subway -->
    |1=#1E00FF
    |2=#FF001E
    |3=#7F007F
    |4=#007F00
    |5=#FFA400
    |6=#FFFF00
    |7=#797979
    |8=#FF1ED0
    |9=#00C0B1
    |0=#000000
    |X=#FF0000
    |#default=rgb({{#expr: ({{{2}}} * 67 + 101) mod 255}}, {{#expr: ({{{2}}} * 97 + 109) mod 255}}, {{#expr: ({{{2}}} * 73 + 127) mod 255}})
  }}
  |#default=#000000
}}</includeonly><noinclude>{{doc}}</noinclude>