colour.step: Make a gradient of colours.

Description Usage Arguments Author(s) See Also Examples

Description

Evenly make steps colours merging from the colour from to the colour to, optionally via the colour via

Usage

1
2
  colour.step(from = "black", to = "red", via = NULL,
    steps = 10, alpha = 255)

Arguments

from

the first, or starting colour

to

the final colour

via

[optional] the middle colour. Leave as NULL, to ignore this.

steps

numeric: how many colours do you want?

alpha

numeric in [0,255] controlling the opacity, from trasparent (0) to opaque (255), or in [0.0,1.0].

Author(s)

Mark Cowley, 2005-08-24

See Also

brewer.pal

Examples

1
colour.step(from="green", to="red", via="black", steps=11)

drmjc/mjcgraphics documentation built on May 15, 2019, 2:40 p.m.