Clear the entire target to transparent before drawing. Default true; pass
false to composite onto the existing target contents. Note: when a viewport
sub-region is set, clear still clears the whole target attachment, not just
the viewport.
Normalized [0, 1] sub-region of the source to draw. null (the default)
draws the full source.
Destination rect within the target, in normalized device coordinates
([-1, 1], origin at centre). null (the default) fills the whole target
((-1, -1) bottom-left to (1, 1) top-right).
StaticgetReturns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
Per-draw options for VectorRenderer#render: where to draw (
viewport), which part of the source to draw (region), and whether to clear first (clear). Leaveviewportorregionnull— their default — to use the whole target or full source; set either to a Rect to override it.Since
Lens Scripting Version 368
Snap OS
Example