Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

tetrahedron with each face differently colored?

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?

tetrahedron with each face differently colored?

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.