This function shifts the color values in the individual channels (eihter R, G and B, or H, S, V) by a user defined value. If a value is shifted outside the value range it will be re-based (i.e. if a R value of 0.7 is shifted by 0.5 to 1.2 while the value range is [0,1], it will be changed to 1.2 - 1 = 0.2).
shiftColor( object, by=0.5, what=c( "H", "S", "V", ... )
)
For HSV colors. By default all channels are shifted by the proportion
of the color space range defined by by
. Parameter
what
allows to specify single channels that should be inverted.
shiftColor( object, by=0.5, what=c( "R", "G", "B", ... ) )
For RGB colors. By default all channels are shifted by the proportion
of the color space range defined by by
. Parameter
what
allows to specify single channels that should be inverted.
invertColor
and modColor
for examples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.