Requires a rgl 3d visualisation to be open that already contains a rendered object. Uses [rgl::bgplot3d()] to add a colorbar in the background of the plot. Experimental.
draw.colorbar(coloredmeshes, horizontal = TRUE, num_steps = 100)
list of coloredmeshes. A coloredmesh is a named list as returned by the coloredmesh.from.* functions. It has the entries 'mesh' of type tmesh3d, a 'col', which is a color specification for such a mesh.
logical, whether the colorbar should be drawn in horizontal oritentation. Defaults to TRUE.
integer, number of steps to use for the colorbar. Defaults to 100.