Google Classroom
GeoGebraGeoGebra Classroom

Demo: Change color of 3D axis


Changes the color of the axis in the 3D graphics. But with recent versions of GeoGebra, now we can just change the color from the main 3D settings. :)

Steps to follow:

1. Create any object. For example a point A. 2. Open the Object Preferences and look for the scripting tab named Global JavaScript. 3. Add the following Global scripting:
function ggbOnInit() { ggbApplet.evalCommand("SetColor(xAxis, 0, 0, 0)"); ggbApplet.evalCommand("SetColor(yAxis, 0, 0, 0)"); ggbApplet.evalCommand("SetColor(zAxis, 0, 0, 0)"); }
4. Save and close the ggb file. Then open again to see new colors. See example below.