2D Shape Types
The following list is the set of built-in functions allowing the creation of 2d shapes.
Name | Function Signature |
---|---|
Capsule | Capsule(float width, float height, int arcPoints) |
Chevron | Chevron(float width, float height) |
Circle | Circle(float radius, int circlePoints) |
Ellipse | Ellipse(float width, float height, int ellipsePoints) |
EllipseWedge | EllipseWedge(float width, float height, float angle, int ellipsePoints) |
HeightMapShape | HeightMapShape(string heightMapPath, float baseWidth, float baseHeight, float height, int resolution) |
Hexagon | Hexagon(float radius) |
Pentagon | Pentagon(float radius) |
Polygon | Polygon(Vec2... points) |
Rect | Rect(float width, float height) |
Rhombus | Rhombus(float width, float height) |
Ring | Ring(float outerRadius, float innerRadius, int circlePoints) |
RingWedge | RingWedge(float outerRadius, float innerRadius, float angle, int arcPoints) |
Square | Square(float length) |
Svg | Svg(string svgPath, float width, float height, int samplingLevel) |
Text | Text(string text, string fontName, float height) |
Trapezoid | Trapezoid(float topWidth, float bottomWidth, float height) |
Triangle | Triangle(Vec2 pointA, Vec2 pointB, Vec2 pointC) |
Wedge | Wedge(float radius, float angle, int arcPoints) |