Vertex

A vertex with position, color, and texture coordinates.

Constructor

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

A vertex with position, color, and texture coordinates.

Properties


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