You are here: Surpac Concepts > Macros > SCL > SCL Graphics Drawing > SclGraphicsSetFacePattern
GEOVIA Surpac

SclGraphicsSetFacePattern

Overview

Set the pattern with which faces of polygons are to be drawn.

Synopsis

SclGraphicsSetFacePattern $pattern

Description

The interior of polygons can be rendered with a solid colour or with some pattern which may even have a contrasting colour defined for the pattern. The pattern is defined using a symbolic representation of various characters.

Arguments

  • pattern
  • Pass by value. Permitted values for pattern include:

    • "solid" The default case---faces are painted uniformly with whatever the current Face Colour is. (The face colour may be set directly or by setting the "face colour")
    • "##" A crosshatch pattern, filling the face. The lines will generally be painted with the current Face Contrast Colour; the spaces will get the current Face Colour.
    • "||" Like the crosshatch pattern, but vertical bars instead.
    • "==" Horizontal bars.
    • "//" Slant-right.
    • "\\" Slant-left.
    • "::" Dotted (square grid).
    • "<><>" Diamonds.
    • "[] []" Checkerboard.

Returns

Nothing.

Examples

SclGraphicsOpen mynode
  SclGraphicsSetFacePattern "solid"
  SclGraphicsSetFacePattern "##"
SclGraphicsClose