shiftColor-methods: Shift the values in the color channels

Description Methods See Also

Description

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).

Methods

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.

See Also

invertColor and modColor for examples.


jotsetung/unsoRted documentation built on May 19, 2019, 9:42 p.m.