Vertex
pykraken.Vertex A vertex with position, color, and texture coordinates.
At a glance
4 membersReference
PYTHON APIConstructor
methodCreate a new Vertex.
Args
- position (
Vec2) — The position of the vertex in world space. - color (
Color | None) — The color of the vertex. Defaults to White. - tex_coord (
Vec2 | None) — The texture coordinate of the vertex. Defaults to (0, 0).
color
propertycolor: ColorColor of the vertex.
position
propertyposition: Vec2Position of the vertex in world space.
tex_coord
propertytex_coord: Vec2Texture coordinate of the vertex.