[NTG-context] How to achieve transparency?

Hans Hagen pragma at wxs.nl
Fri May 14 15:35:50 CEST 2010

```On 14-5-2010 3:16, Henning Hraban Ramm wrote:
> Am 2010-05-13 um 22:57 schrieb Hans Hagen:
>> r = red channel
>> g = green channel
>> b = blue channel
>>
>> c = cyan channel
>> m = magenta channel
>> y = yellow channel
>> k = black channel
>>
>> h = hue or hexadecimal
>> s = saturation
>> v = value (or so)
>>
>> h = hex (i'll add x for hex as well)
>>
>> a = alternative
>> t = transparency factor
>>
>> s = gray value
>>
>> p = spotcolor percentage
>> e = spotcolorname
>>
>> <name 1> = duotone 1
>> <name 2> = duotone 2
>>
>
> I wikified that:
> http://wiki.contextgarden.net/Reference/en/definecolor
>
> But how's it possible that h and s have two meanings? Does HSB mode work
> at all? (Didn't try.)

hsv should work (it's the 'v' that triggers the meaning)

> What means "alternative"? (So far I only know that it should be 1 for
> transparency.)

\definetransparency [none]        [0]
\definetransparency [normal]      [1]
\definetransparency [multiply]    [2]
\definetransparency [screen]      [3]
\definetransparency [overlay]     [4]
\definetransparency [softlight]   [5]
\definetransparency [hardlight]   [6]
\definetransparency [colordodge]  [7]
\definetransparency [colorburn]   [8]
\definetransparency [darken]      [9]
\definetransparency [lighten]    [10]
\definetransparency [difference] [11]
\definetransparency [exclusion]  [12]

--

-----------------------------------------------------------------