RB.DrawTriangleFill
Method - Static
Parameters
p0
|
Vector2i
|
First point of the triangle
|
p1
|
Vector2i
|
Second point of the triangle
|
p2
|
Vector2i
|
Third point of the triangle
|
color
|
Color32
|
Color
|
pivot
|
Vector2i
|
Rotation pivot point, specified as an offset from the rectangle's top left corner
|
rotation
|
float
|
Rotation in degrees
|
Returns
Nothing.
Description
Draw a filled triangle to the display with the given color. The 3 points of the triangle are defined by p0, p1, and p2.
Optionally a pivot point, and rotation angle in degrees can also be specified.
Filled triangle can be useful for some special effects like 2D shadow ray-casting.
Example
See Also
RB.DrawTriangle
See Docs
Features - Primitives
|