A 2D polygon.
truepolygon edges will be anti-aliased. Default value:
textureis defined, it will be multiplied by this color. It will also be the default color for vertices not set in
invert. Setting this value too small may result in a “Bad Polygon” error. Default value:
truepolygon will be inverted, containing the area outside the defined points and extending to the
invert_border. Default value:
uvto set texture coordinates.
(0, 0)the texture’s origin (its top-left corner) will be placed at the polygon’s
uvcoordinates when using a
texture. Larger values make the texture smaller, and vice versa.
uvper polygon vertex. If there are fewer, undefined vertices will use
A Polygon2D is defined by a set of points. Each point is connected to the next, with the final point being connected to the first, resulting in a closed polygon. Polygon2Ds can be filled with color (solid or gradient) or filled with a given texture.
© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.