Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference » Properties

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

pattern

set [the] pattern to posInteger

where posInteger is an integer in the range 1 through 40.

The pattern property returns or sets the current pattern used to fill shapes or to paint with the Brush tool.

If you edit one of the patterns, HyperCard saves the new pattern with the stack.

Pattern IDs are organized from top to bottom and then left to right from 1 to 40. Top left is 1, bottom left is 10, top right is 31, bottom right is 40.


Examples

set the pattern to 1 -- white
set the pattern to 12 -- black
set the pattern to 22 -- gray

Placeholders

posInteger
An expression that evaluates to a positive integer.

For example:
3
67 mod 13
the number of bg fields
the number of backgrounds
the number of cards div 2
See also: background, bkgnd, button, card, chunk, field, menu, and menuItem

Related Topics

« partNumber | HyperTalk Reference | polySides »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View

Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Properties

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

pattern

set [the] pattern to posInteger

where posInteger is an integer in the range 1 through 40.

The pattern property returns or sets the current pattern used to fill shapes or to paint with the Brush tool.

If you edit one of the patterns, HyperCard saves the new pattern with the stack.

Pattern IDs are organized from top to bottom and then left to right from 1 to 40. Top left is 1, bottom left is 10, top right is 31, bottom right is 40.


Examples

set the pattern to 1 -- white
set the pattern to 12 -- black
set the pattern to 22 -- gray

Placeholders

posInteger
An expression that evaluates to a positive integer.

For example:
3
67 mod 13
the number of bg fields
the number of backgrounds
the number of cards div 2
See also: background, bkgnd, button, card, chunk, field, menu, and menuItem

Related Topics

« partNumber | HyperTalk Reference | polySides »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View