gaDrawZAxis(float,ofColor,bool)

Syntax

gaDrawZAxis(float,ofColor,bool)

Example

col = ofColor(34,186,210,255)
 
function draw()
 gaBackground(0.8,1.0)
 
 ofPushMatrix()
 ofTranslate(OUTPUT_W/2,OUTPUT_H/2,0)
 ofRotateY(gaMouseX()/OUTPUT_W*360)
 ofRotateX(gaMouseY()/OUTPUT_H*360)
 
 ofSetColor(0)
 ofNoFill()
 ofDrawSphere(100,100,0,50)
 
 gaDrawZAxis(300,col,true)
 ofPopMatrix()
end

Description

Draw Z axis only if you’re working in a 3D script. You set length, color and positive/negative or positive only representation.

Parameters

float,ofColor,bool