Mesh:getVertex

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Returns vertex information from the geometry.

Function

Synopsis

x, y, u, v, r, g, b, a = Geometry:getVertex( i )

Arguments

number i
The index of the the vertex you want to retrieve the information for.

Returns

number x
The x vertex coordinate.
number y
The y vertex coordinate.
number u
The u texture coordinate.
number v
The v texture coordinate.
number r
The red color component.
number g
The green color component.
number b
The blue color component.
number a
The alpha color component.

See Also

Other Languages