PathMakeWithPoints

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
( polygon | polyline ) path with points <mPoints>
Associationscom.livecode.canvas
Summary

Creates a new path.

Parameters
NameTypeDescription
mPoints

An expression which evaluates to a list of points.

Example
// Create a polyline path
variable tPath as Path
put polyline path with points [point [0,0], point [25,50], point [75,50], point [50,0]] into tPath
// Create a closed polygon path (rhombus)
variable tPath as Path
put polygon path with points [point [0,0], point [25,50], point [75,50], point [50,0]] into tPath
Values
NameTypeDescription
return

A new polyline or polygon path. A polygon path will be closed with an additional line from the last point to the first.

Description

Creates a new path.

Tagscanvas