1

How do I explicitly specify the directive that's used to color objects in Graphics3D?

IE, in the graphics below, I wanted last sphere and the first sphere to have the same colors, Automatic doesn't see to be a thing

Graphics3D[{Sphere[{0,0,0}], Red, Sphere[{1, 0, 0}, 1], Automatic, Sphere[{2, 0, 0}, 1]}]
Yaroslav Bulatov
  • 7,793
  • 1
  • 19
  • 44

1 Answers1

3
Graphics3D[{Sphere[{0, 0, 0}], {Red, Sphere[{1, 0, 0}, 1]}, Sphere[{2, 0, 0}, 1]}]

EDIT:

By the way the default color is White.

So you can do it also like this (replacing your Automatic with White):

Graphics3D[{Sphere[{0,0,0}], Red, Sphere[{1, 0, 0}, 1], White, Sphere[{2, 0, 0}, 1]}]
azerbajdzan
  • 15,863
  • 1
  • 16
  • 48