LightsAndColor: Difference between revisions

From Arianne
Jump to navigation Jump to search
imported>Kiheru
Blend layers =: typo in header
imported>Kiheru
Blend layers =: typo in header
(No difference)

Revision as of 17:37, 29 April 2013

Stendhal provides two ways to modify the colors of the zone maps. One that affects the entire zone uniformly, including any entities there, and another for local effects. For both of them the coloring method is specified in the zone's xml.

As an example, int_semos_storage_-1 specifies the following for its coloring:

<source lang="xml">

 <attributes>
   <parameter name="color_method">multiply</parameter>
   <parameter name="color">#413263</parameter>
   <parameter name="blend_method">bleach</parameter>
 </attributes>

</source>

This specifies both the zone wide, and local coloring methods.

Zone coloring mode

The following line in the Semos storage zone's definition specifies the coloring mode for the entire zone, and all entities within: <source lang="xml">

 <parameter name="color_method">multiply</parameter>

</source> It tells the Stendhal client to use the multiply mode blending, see Blend modes for more information. For multiplication the color which everything is multiplied needs to be known too, and that is specified at the next line: <source lang="xml">

 <parameter name="color">#413263</parameter>

</source> The color definition is the same as in html, and many programs, the GIMP for example, can display colors in that form. In the case you need to do it by hand, the numbers after # are the red, green and blue components, two for each in that order. Each component is in hexadecimal and in range 00 to ff.

Blend layers

TODO

Available blends

TODO