Graphics Component Reference

The Graphics component provides a series of drawing functions that reference the Web canvas'due south cartoon APIs.

graphics

Select a node in the Node Tree console, and so click the Add Component button below the Properties panel and select Graphics from Renderer Component. Then y'all can add the Graphics component to the node.

Graphics Backdrop

Property Explanation
lineWidth Current line width
lineJoin lineJoin determines how ii connecting segments (of lines, arcs or curves) with not-zero lengths in a shape are joined together
lineCap lineCap determines how the finish points of every line are fatigued
strokeColor Stroke color
fillColor Fill color
miterLimit Sets the miter limit ratio

Graphics API

Path

Function Explanation
moveTo (x, y) Motility the render cursor to a specified point in the canvass without creating lines.
lineTo (x, y) Adds a direct line to the path
bezierCurveTo (c1x, c1y, c2x, c2y, 10, y) Adds a cubic Bézier curve to the path
quadraticCurveTo (cx, cy, x, y) Adds a quadratic Bézier curve to the path
arc (cx, cy, r, a0, a1, counterclockwise) Adds an arc to the path which is centered at (cx, cy) position with radius r starting at startAngle and ending at endAngle going in the given management by counterclockwise (defaulting to false).
ellipse (cx, cy, rx, ry) Adds an ellipse to the path
circle (cx, cy, r) Adds a circle to the path
rect (10, y, due west, h) Adds a rectangle to the path
shut () Adds an round corner rectangle to the path
stroke () Draws a filled rectangle
fill () Erasing any previously fatigued content
clear () Causes the point of the pen to motion back to the start of the current path. It tries to add a straight line from the current indicate to the offset

results matching ""

    No results matching ""