Description Usage Arguments Details Value Author(s) Examples
Repeat color col
n
times as columns in a 3xn
RGB color matrix. Analog to rep
which is used internally.
1 |
col |
color (valid input to |
n |
number of repetitions (should be a positive integer value) |
alpha |
either logical or actual alpha (in [0..255]) |
If col
consists of more than one color, those colors are recycl
the usual rules to reach n
colors. In the special case where n
is smaller than thenumber of colors in col
, only the first n
colors will be returned.
For n
<1 an empty matrix is returned.
color matrix with n
columns of color col
Benno Pütz puetz@psych.mpg.de
1 | col.rep('red', 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.