path_get_closed

Returns the closed status of a given path.

Syntax:

path_get_closed(index);


Argument Description
index The index of the path to check.


Returns: Boolean.


Description

This function can be used to return whether the path is flagged as closed (true) or open (false), ie whether the path loops or if it has a definitive beginning and end.


Example:

state = path_get_closed(c_path)

This will set "state" to either true or false depending on the closed state of the path indexed in "c_path".


Back: Path Information
Next: path_get_kind
© Copyright YoYo Games Ltd. 2015 All Rights Reserved