Changing color of the plane

SMJepard shared this question 8 years ago
Answered

Hi,

Could you make it possible to change color of the basement plane?


Vladimir

Comments (10)

photo
1

Hi, if you mean a color plane, we can already (4.9.7 properties>color) with planes like a:z=0.

Maybe you mean color about background of window3D.

Michel

photo
1

I mean this plane:77dc9185bdcf990c3b09ab8916a5b8e1

photo
1

Hi, I don't understand what you show us : no equations, no objects to display.

Try in input :

    Execute[ {"a:z=0", "ВыбратьДинамическуюОкраску[a,1,0,0]"} ]

to have a red plane. (red=1,green=0,blue=0)

Michel

photo
1

It's gray plane. Right click on 3D window - Plane. I speak about that one.

P.S. Nevertheless I don't need it very much. I use your variant. plane z=0

photo
1

Ok I understand now.

photo
1

So, is there a way to change the color of the default gray plane?

photo
1

I think not, neither for axes.

photo
1

Hi


You can change color of plane and axes too with JavaScript. Just create a new file. Create an object (a point for example). Open the Object properties and go to Global JavaScript. Then type the following:


  1. function ggbOnInit() {
  2. ggbApplet.evalCommand("SetColor[xAxis,0,0,0]");
  3. ggbApplet.evalCommand("SetColor[yAxis,0,0,0]");
  4. ggbApplet.evalCommand("SetColor[zAxis,0,0,0]");
  5. ggbApplet.evalCommand("SetColor[xOyPlane,0.8,0,0]");
  6. }


Finally close the file. And open again. This should work.


9233644191deec9ff0279724aea108f6


Saludos a todos. Cheers!

photo
1

Thanks!

photo
1

now try setcolour(xOyPlane,"red")

photo
© 2020 International GeoGebra Institute