colorMesh

fun colorMesh(gl: GL, size: Int = 1000, grow: Boolean = false, generate: Mesh.() -> Unit): Mesh

Creates a mesh with VertexAttribute.POSITION_2D and VertexAttribute.COLOR_PACKED attributes.


fun <T : ContextListener> T.colorMesh(size: Int = 1000, grow: Boolean = false, generate: Mesh.() -> Unit): Mesh

Creates a mesh with VertexAttribute.POSITION_2D and VertexAttribute.COLOR_UNPACKED attributes.