2010-08-22 13:13:17 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
|
|
<!DOCTYPE funcs
|
|
|
|
SYSTEM '../../../clonk.dtd'>
|
2009-05-09 13:11:51 +00:00
|
|
|
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
|
|
|
|
<funcs>
|
2010-08-22 13:13:17 +00:00
|
|
|
<func>
|
|
|
|
<title>HSLa</title>
|
|
|
|
<category>Arithmetics</category>
|
2011-06-30 10:52:55 +00:00
|
|
|
<version>5.1 OC</version>
|
2010-08-22 13:13:17 +00:00
|
|
|
<syntax>
|
|
|
|
<rtype>int</rtype>
|
|
|
|
<params>
|
|
|
|
<param>
|
|
|
|
<type>int</type>
|
|
|
|
<name>byH</name>
|
|
|
|
<desc>Hue of the color. 0 is red, 85 is green, 170 is blue, and 255 is red again.</desc>
|
|
|
|
</param>
|
|
|
|
<param>
|
|
|
|
<type>int</type>
|
|
|
|
<name>byS</name>
|
|
|
|
<desc>Saturation of the color. This is the color contrast.</desc>
|
|
|
|
</param>
|
|
|
|
<param>
|
|
|
|
<type>int</type>
|
|
|
|
<name>byL</name>
|
|
|
|
<desc>Brightniss of the color. A brightness of 0 would correspond to <funclink>RGB</funclink>(0,0,0).</desc>
|
|
|
|
</param>
|
|
|
|
<param>
|
|
|
|
<type>int</type>
|
|
|
|
<name>byA</name>
|
|
|
|
<desc>Transparency of the color.</desc>
|
|
|
|
</param>
|
|
|
|
</params>
|
|
|
|
</syntax>
|
|
|
|
<desc>Creates a 32 bit color value from four parameters. Range is 0-255 for all parameters.</desc>
|
|
|
|
<examples>
|
|
|
|
<example>
|
|
|
|
<code><funclink>SetClrModulation</funclink>(HSLa(0,0,255,192),<funclink>FindObject</funclink>(TRE1));</code>
|
|
|
|
<text>Colors a randomly chosen tree white and somewhat transparent.</text>
|
|
|
|
</example>
|
|
|
|
</examples>
|
|
|
|
<related>
|
|
|
|
<funclink>RGB</funclink>
|
|
|
|
<funclink>RGBa</funclink>
|
|
|
|
<funclink>HSLa</funclink>
|
|
|
|
</related>
|
|
|
|
</func>
|
|
|
|
<author>Newton</author><date>2005-06</date>
|
2009-09-19 16:21:51 +00:00
|
|
|
</funcs>
|