Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference »

Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.

brush

set [the] brush to posInteger

where posInteger is a positive integer in the range 1 through 32.

The brush property returns or sets the current brush shape used by the Brush tool.

The value of the brush property represents a brush shape from the Brush Shape dialog box. The default brush is 8.

Brush IDs are organized top to bottom and then left to right from 1 to 32. Top left is 1, below top left is 2, etc. Second column starts with brush 5.

Examples

set the brush to 1
set the brush to 32

Related Topics

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

HyperTalk Reference


Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Modern View