SetStrokeCap Color Command

SETSTROKECAP Color Commands

Sets the stroke cap for an object, or for a stroke style tag. If nothing is selected, it sets the stroke cap for future objects.

setstrokecap [ALL | STROKENUMBER number] [DOCUMENT name | WINDOW name | OBJECTID number | STYLETAG name]

type/k Sets the cap type.

Options: BUTT | ROUND | SQUARE.

ALL Sets the fill and stroke fill.

Default.

STROKENUMBER/i Sets a stroke only. See notes.

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.

Examples:

setstrokecap butt

setstrokecap round strokenumber 1 object

 

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

User Contributed Comments For SetStrokeCap
Dan Kilroy wrote...2006-05-03 17:47:34

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

Sets the {...} .

SetStrokeCap ([BUTT | ROUND | SQUARE] [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 SetStrokeCap