gaDrawAxis(float,ofColor,bool)

Syntax

gaDrawAxis(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)
    
    gaDrawAxis(300,col,true)
    ofPopMatrix()
end

Description

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

Parameters

float,ofColor,bool