{{newinoldin|[[0.9.0]]|090|[[0.10.0]]|100|type=function|text=It has been replaced by [[Mesh:setAttributeEnabled]]("VertexColor", enable)}}
Sets whether per-vertex colors are used instead of the constant color when drawing the Mesh (constant color being [[love.graphics.setColor]].)

Per-vertex colors are enabled by default for a Mesh if at least one vertex color was not the default (255, 255, 255, 255) when the Mesh was [[love.graphics.newMesh|created]].
== Function ==
=== Synopsis ===
<source lang="lua">
Mesh:setVertexColors( on )
</source>
=== Arguments ===
{{param|boolean|on|True to use per-vertex coloring, otherwise [[love.graphics.setColor]] is used when drawing.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::Mesh]]
* [[Mesh:hasVertexColors]]
* [[love.graphics.newMesh]]
[[Category:Functions]]
{{#set:Description=Sets whether per-vertex colors are used instead of the constant color when drawing the Mesh.}}
== Other Languages ==
{{i18n|Mesh:setVertexColors}}