tetrahedron with each face differently colored?

asked 2023-09-11 00:32:52 +0200

Tintin1 gravatar image

updated 2023-09-11 01:02:11 +0200

I am running the code

G = tetrahedron(color='blue') 
G.show(aspect_ratio=[1,1,1])

It tried the following:

G = tetrahedron(color=['blue',"green","red","yellow]) 
G.show(aspect_ratio=[1,1,1])

without success.

I want the tetrahedron to be colored for each face differently. Can I do that?

For cubes,

G = cube(color=['red', 'green', 'blue'], opacity=0.9)
G.show(aspect_ratio=[1,1,1])

gives the required coloring.

edit retag flag offensive close merge delete

Comments