patternBasics: Pattern Building Blocks

patternBasicsR Documentation

Pattern Building Blocks

Description

Functions to draw a small square in a pattern step by step.

Usage

blankPattern(x0, x1, y0, y1, border = "black", background = "white", ...)

addLineToPattern(pattern, x0, x1, y0, y1, colour)

addPolygonToPattern(pattern, x, y, border, colour)

Arguments

x0, x1, y0, y1

co-ordinates for the top, bottom, left and right of the square.

border

colour for border lines. see details.

background

the background colour for the square.

...

parameters passed to component().

pattern

a pattern to add a line or polygon to.

colour

the colour of a line added to the pattern.

x, y

co-ordinates for a line added to the pattern.

Details

blankPattern creates a component with a single square, and the other functions add details.

See Also

Other patterns: checkPatterns, makePatternBlock(), patternNames(), squarePatterns, stripePatterns, trianglePatterns

Examples

print(1+1)

R-graphic-design/RGD documentation built on Jan. 2, 2023, 10:30 p.m.