User Tools

Site Tools


en:tutorials:color:web_color_literals

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:tutorials:color:web_color_literals [2021/08/31 06:07 (8 weeks ago)]
sausage
en:tutorials:color:web_color_literals [2021/08/31 19:36 (8 weeks ago)] (current)
iarwain Viewport.BackgroundColor now support HTML web literals
Line 1: Line 1:
 ====== Web Color Literals ====== ====== Web Color Literals ======
  
-Color literals have been added for all HTML web colors. The list can be modified/​expanded directly inside the Color config section. These colors can be used for Object, Graphic and FX color values (StartValue/​EndValue when the Curve = color).+Color literals have been added for all HTML web colors. The list can be modified/​expanded directly inside the Color config section. These colors can be used for Object, Graphic and FX ''​Color'' ​values (StartValue/​EndValue when the Curve = color) ​as well as Viewport ''​BackgroundColor''​.
  
 The list of web colors can be found at: https://​en.wikipedia.org/​wiki/​Web_colors#​Extended_colors The list of web colors can be found at: https://​en.wikipedia.org/​wiki/​Web_colors#​Extended_colors
Line 64: Line 64:
 LightColor ​ = @ObjectMoon.MoonColor LightColor ​ = @ObjectMoon.MoonColor
 </​code>​ </​code>​
- 
-So what about using color names in other properties? Changing the background color for a Viewport can be done like this: 
- 
-<code ini> 
-[MainViewport] 
-Camera ​         = MainCamera 
-BackgroundColor = @Color.Red 
-</​code>​ 
- 
- 
  
en/tutorials/color/web_color_literals.txt ยท Last modified: 2021/08/31 19:36 (8 weeks ago) by iarwain