PointCloud.paint#

PointCloud.paint(color: Any) → PointCloud[source][source]#

Colorize point cloud

Parameters:

color (array_like(3), str) – color for points, either an RGB value in the range [0, 1] or the name of a color, such as "red" or "skyblue"

Returns:

colorized point cloud

Return type:

PointCloud

Raises:

ValueError – color is a string that is not a known color name

Paint all points in the point cloud this color.

Changed in version 2.5.0: color can be a color name, which is converted by name2color.