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, s, t, 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 s
The s texture coordinate.
number t
The t 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