CLASS v1.8.0

Vertex

pykraken.Vertex

A vertex with position, color, and texture coordinates.

Reference

PYTHON API
Vertex(position: Vec2, color: Color | None = None, tex_coord: Vec2 | None = None)

Create 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

property
color: Color

Color of the vertex.

position

property
position: Vec2

Position of the vertex in world space.

tex_coord

property
tex_coord: Vec2

Texture coordinate of the vertex.

Find your next step

Start typing to search the manual.