Please enable JavaScript to view this site.

ESL Documentation

Pattern Definition

Define a group of drawing statements as a pattern.

pattern PATTERN_NAME is

[DRAWING_STATEMENT] ...

PATTERN_NAME

The identifier for a pattern.

DRAWING_STATEMENT

A drawing statement.

Description

The position at which ESL begins to draw a pattern, the reference point of the pattern, is the position of the graphics cursor at the time that the pattern is referenced. The co-ordinates referred to in a pattern definition are in the co-ordinate system of the graphical object that references the pattern. Thus, it is highly advisable to specify relative movement (e.g., draw [by]) rather than absolute movement (e.g., draw to) in a pattern definition.

A pattern definition can contain any number of pattern references, but it cannot reference itself. Textual region drawing statements are not permitted in patterns.

Example

pattern Logo is

pattern Star

move -40 0

blue draw 100 20

blue draw -100 0

blue draw 100 20

pattern Star

See Also

pattern Pattern Reference