Changes

Jump to navigation Jump to search
1,197 bytes added ,  13:35, 13 October 2019
no edit summary
}}
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>definespotcolor</syntax>
== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
== Description ==
Spot colours can be defined using three arguments instead of two arguments, like {{cmd|definecolor}}. The first argument is the colour to define. The second argument is the colour to be use as a base. And the third argument takes the same options as \definecolor. == Example 1 ==
<context source=yes mode=mkiv>
\setuppapersize[A5]
\starteffect[outline]
And here is the magic.Magic Outline
\stopeffect
\stopcolor
\stoptext
</context>
 
== Example 2 ==
 
<context source=yes mode=mkiv>
\definecolor [ColourSecondary] [h=9A957A]
\definecolor [ColourSecondaryLighter] [h=9A957A, a=1, t=.5]
\definecolor [ColourSecondaryLightest] [h=9A957A, a=1, t=.3]
\definespotcolor [ColourSecondaryLighterSpot] [ColourSecondary] [a=1, t=.5]
\definespotcolor [ColourSecondaryLightestSpot] [ColourSecondary] [a=1, t=.3]
 
\setupblackrules [height=1cm, width=5cm]
 
\starttext
 
\blackrule[color=ColourSecondary]
 
%% defined using \definecolor
\dontleavehmode
\blackrule[color=ColourSecondaryLighter]
\blackrule[color=ColourSecondaryLightest]
 
%% defined using \definespotcolor
\dontleavehmode
\blackrule[color=ColourSecondaryLighterSpot]
\blackrule[color=ColourSecondaryLightestSpot]
 
\stoptext
</context>

Navigation menu