Skip to main content

CanvasPropertyDashes

Type

operator

Summary

The current dashes of a canvas.

Syntax

the dashes of <mCanvas>

Description

The dashes as a list of numbers. The dashes specifies a sequence of lengths that alternately represent space and dash lengths when stroking a path.

Parameters

NameTypeDescription

mCanvas

An expression which evaluates to a canvas.

Examples

// Draw a rectangle with short, widely spaced dashes
set the dashes of this canvas to [10, 40]
stroke rectangle path of rectangle [50, 50, 200, 200] on this canvas
Thank you for your feedback!

Was this page helpful?