gaTimelineSetup(string,string)

Syntax

gaTimelineSetup(string,string)

Example

rad = 0

function setup()
 gaTimelineSetup(gaDataPath(""),"timelineEx")
 
 gaTimelineSetLoopType(OF_LOOP_NORMAL)
 gaTimelineSetFrameRate(25)
 gaTimelineDurationInFrames(250)
 gaTimelineAddCurves("circleRad",1,OUTPUT_H)
 
 gaTimelinePlay()
 
 ofSetCircleResolution(50)
end

function update()
 rad = gaTimelineGetValue("circleRad")
end

function draw()
 gaBackground(0.0,1.0)
 
 ofSetColor(255)
 ofCircle(OUTPUT_W/2,OUTPUT_H/2,rad)
 
end

Description

The init function for the graphical timeline. You have to specify the path and the name of the timeline (for xml config file savings)

Parameters

string,string