Changes

Jump to navigation Jump to search
68 bytes added ,  15:04, 7 October 2019
m
→‎Defining New Colors: bit of visual cleanup
|-
| crayola || <code>\usecolors[crayola] </code>
| {{src|colo-imp-crayola.mkiv}} || 235 Crayola (Binney & Smith) colors
|-
| ema || <code>\usecolors[ema]</code>
| {{src|colo-imp-solarized.mkiv}} || 16 solarized colors
|}
 
= Defining New Colors =
{| class="wikitable"
! Name !! Sytanx Syntax (and Example) !! Explanation
|-
| style="width:20%;" | RGB color model| style="width:40%;" | <texcode>\definecolor[...][r=..., g=..., b=...]</texcode>
For example,
<texcode>\definecolor[lime][r=0.75, g=1, b=0]
For example
{|
! width="45%"| ! width="10%"| ! width="45%"||<texcode>\usecolors[xwi]
\definecolor[highlight][yellow]
\defineframed
[important]
[location=low, frame=off, background=color, backgroundcolor=highlight]
This is a \important{important}word.
This is a \important{important}word.
</texcode>
| width="10%"|| width="45%"|<context mode=mkiv>\usecolors[xwi]
\definecolor[highlight][yellow]
\defineframed[important][location=low, frame=off, background=color, backgroundcolor=highlight]
This is a \important{important}word.

Navigation menu