Function nannou::mesh::with_colors

source ·
pub fn with_colors<M, C>(mesh: M, colors: C) -> WithColors<M, C>
where M: Points, C: Channel,
Expand description

Combine the given mesh with the given channel of vertex colors.

Panics if the length of the colors channel differs from points.