genHatchData: genHatchData

Description Usage Arguments Value Author(s) See Also Examples

Description

Generate a collection of n RGB patches (square images with uniform background and hatching).

Usage

1
genHatchData(rgbcol, rgbhatch, side=20)

Arguments

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.

Value

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.

Author(s)

Pierrick Bruneau

See Also

drawPatches

Examples

1
2
3
coldata <- matrix(runif(30), ncol=3)
hatchdata <- matrix(runif(30), ncol=3)
patches <- genHatchData(coldata, hatchdata)

patchPlot documentation built on May 1, 2019, 8:20 p.m.