SetStroke Color Command

SETSTROKE Color Commands

Sets the stroke dash for an object or text, or for a stroke style tag. If object or text is chosen and nothing is selected, it sets the stroke dash for future objects or text, as applicable.

setstroke [ALL | FILL | STROKENUMBER number] [what] [DOCUMENT name | WINDOW name | OBJECTID number | STYLETAG name]

SOLID Sets the dash to solid.

PATTERN/s The dash pattern. See notes.

ALL Sets the fill and stroke fill.

Default.

FILL Sets the fill only.

STROKENUMBER/i Sets a stroke only. See notes.

what/k Specifies what to set.

Options: OBJECT The object. Default.
TEXT The text.
SHADOW The text shadow.
REVERSE The text reverse.
UNDERLINE The text underline.
OUTLINE The text outline.

DOCUMENT/s The document name.

WINDOW/s The window name.

OBJECTID/i The number of the object.

Default=current.

STYLETAG/s Sets the attribute for a style tag.

Notes:

STROKENUMBER: Strokes are numbered from 0. This is different than the program interface which numbers them from 1.

PATTERN: Dashes are comprised of 16 dots which may be toggled on and off. Use a '1' to toggle a dot on, and a '0' to toggle a dot off. For example, a dash pattern with dashes two dots wide with two dots of space between them, would be '1100110011001100'.

Examples:

setstroke solid

setstroke pattern '1010101010101010' strokenumber ยจ
1 object

setstroke pattern 1111000011110000

 

SetStroke  Command Definition  url:PGScmd/setstroke
  created:2006-03-31 10:52:59   last updated:2006-03-31 10:52:59
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For SetStroke
Dan Kilroy wrote...2006-05-03 17:42:21

Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above.

Sets the {...} .

SetStroke ([SOLID | PATTERN 1010101010101010][DASH offset count dashlength.0 ...] [ALL | STROKENUMBER n] [OBJECT | TEXT | SHADOW | OUTLINE | REVERSE | UNDERLINE | PGS40: RULEABOVE | RULEBELOW] PGS41: CELLFILL|CELLTOP|CELLBOTTOM|CELLLEFT|CELLRIGHT PGS50: DROPCAP|BULLET|NUMBERED [DOCUMENT document | WINDOW document-window | ID id | STYLETAG document:...-tagname])


Parameters:


Results:


Notes:
BULLET, DROPCAP, and NUMBERED parameters first available in 5.0.3.2.


See Also:
Filled, SetColor, SetColorBlend, SetColorCount, SetColorStyle, SetColorTint, SetFill, SetFPattern, SetFPatternStyle, SetScreen, SetStroke, SetStrokeBegin, SetStrokeCap, SetStrokeCount, SetStrokeEnd, SetStrokeJoin, SetStrokeOffset, SetStrokeStyle, SetStrokeWeight, SetTrapping, Stroked


Examples:
Python:


ARexx:

Applescript:

User Contributed Comments For SetStroke