Description Usage Arguments Value Author(s) See Also Examples
Generate a collection of n RGB patches (square images with uniform background and hatching).
1 | genHatchData(rgbcol, rgbhatch, side=20)
|
rgbcol |
nx3 matrix of RGB values in [0,1]. Colors of the background of patches. |
rgbhatch |
nx3 matrix of RGB values in [0,1]. Colors of hatchings. |
side |
side of each image patch, in pixels. |
rgbpatch object, structured as follows :
rchannel |
n x squared(side) matrix, containing R values in [0,1] for the n patches. Each line, ie patch, is intended to be restored column-wise for drawing. |
gchannel |
same for G values. |
bchannel |
same for B values. |
Pierrick Bruneau
drawPatches
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.