How to set rgl label colors

288 views Asked by At

I am trying to set label colours to "black". However, when using rgl.triangles() with col="lightgray", the label text is also set to "lightgray" which is too light for the printed image. Is it possible to set the label text colour?

2

There are 2 answers

0
user2554330 On BEST ANSWER

Your problem is in calling rgl.triangles(). If you call triangles3d() instead, it won't have the side effect of changing the default colour.

0
Graham G On

I found the answer from a search on the Internet. Apparently, one needs to include

rgl.material(color="#000000")

before using decorate3d() even though this call has an option to set colour, which does not appear to do the job.