Difference between revisions of "Mesh:setVertexColors"

(Created page with "{{newin|0.9.0|090|type=function}} Sets if the per-vertex colors are used when rendering instead of the constant color (constant color being love.graphics.setColor or [[Sp...")
 
(No difference)

Revision as of 23:48, 9 October 2013

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

Sets if the per-vertex colors are used when rendering instead of the constant color (constant color being love.graphics.setColor or SpriteBatch:setColor)

The per-vertex colors are automatically enabled by default when making a new Geometry or when doing Geometry:setVertex, but only if at least one vertex color is not the default (255,255,255,255).

Function

Synopsis

Geometry:setVertexColors( on )

Arguments

boolean on
True to use per-vertex coloring.

Returns

Nothing.

See Also

Other Languages