Vertex

A vertex with position, color, and texture coordinates.

Constructor

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

A vertex with position, color, and texture coordinates.

Properties


NameDescriptionType
positionPosition of the vertex in world space.Vec2
colorColor of the vertex.Color
tex_coordTexture coordinate of the vertex.Vec2