Demo: Change color of 3D axis


Changes the color of the axis in the 3D graphics.

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.