gaSaveFrame(string)

Syntax

gaSaveFrame(string)

Example

filepath = ""

function setup()
    // we are setting here the filepath for the export frame
    // inside the /data folder of the example
    // this means you need to save the example before runs it
    // in order to have a /data folder in place
    filepath = gaDataPath("export.png")
end

function draw()
    gaBackground(0.0,0.009)

    ofSetColor(126,21,11,33)

    glBegin(GL_LINE_LOOP)
    for i=0,200 do
        glVertex3d(ofRandomuf()*OUTPUT_W,ofRandomuf()*OUTPUT_H,ofRandomuf()*OUTPUT_H/2)
    end
    glEnd()
end

function keyReleased()
    if gaKey() == string.byte(' ') then
        gaSaveFrame(filepath)
    end
end

Description

Save a GAmuza output window frame like .tif or .png image. You just need to specify the path where to save the image.

Parameters

string