Changes

Jump to navigation Jump to search
184 bytes added ,  21:21, 6 March 2020
add HWB, some text changes
<tr valign="top" class="second">
<td class="cmd">[[Command/keyword:h|h]]</td>
<td>[[Command/value:number|number]] hue (HSB/HWB, 0–360)</td>
</tr>
<tr valign="top" class="second">
<tr valign="top" class="second">
<td class="cmd">[[Command/keyword:v|v]]</td>
<td>[[Command/value:number|number]] brightness/value (HSB), blackness (HWB)</td> </tr> <tr valign="top" class="second"> <td class="cmd">[[Command/keyword:w|w]]</td> <td>[[Command/value:number|number]] whiteness (HWB)</td>
</tr>
<tr valign="top" class="second">
<tr valign="top" class="second">
<td class="cmd">[[Command/keyword:x|x]]</td>
<td>[[Command/value:text|text]] Hexadecimal RGB value (like in HTML), only with hex module</td>
</tr>
</table>
<code>\color</code> command.
 ===Hex colors in MkII===To use hexadecimal colors in mkii MkII you need to load the proper module first:
<texcode>
Then the colors can be specified with
<texcode>
\definecolor[hex-red][h=FF0000]% it’s h instead of x in MkII
</texcode>
 
===Transparency===
Regarding the key {{code|a}}, which means transparency alternative method, there are a certain number of values (actually at least 13, from 0 to 12) whose meanings can be seen from below:
== Example ==
<context source=yes mode=mkiv>
% mode=mkiv
 
% rgb
\definecolor[bluu][r=.25, g = .1, b=1]
Hey, \color[bluu]{look at that!}
% hex
%\setupcolor[hex] % needed in mkii only\definecolor[salmon][hx=AB5757]
Hey, \color[salmon]{look at that!}

Navigation menu