Description Usage Arguments Value Author(s) Examples
These functions allow colours to be mixed in any colour space, either
additively (like light) or subtractively (like paint). The infix form
%.)%
is an alternative for addmix
, and %_/%
for
submix
, with the mixing amount being fixed to 1 in these cases.
1 2 3 4 5 6 7 |
base, X |
A vector of base colours, or a palette function or scale. |
mixer, Y |
A vector of colours to mix in. |
amount |
The amount of each colour to mix in, relative to the amount
of the base. This will be recycled to the length of |
space |
A string giving the space in which to perform the mixing, or
|
New colours of class "shade"
, or a new palette function.
Jon Clayden <code@clayden.org>
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.