The scratchpad is the fluxus editor and gl window.
void
Sets a function to be called every time the render is about to draw a new frame.
(define count 0) (define (myfunc) (display count)(display " frames have been rendered!") (newline) (set! count (+ count 1))) (every-frame (myfunc))
void
Clears out the renderer of all objects and lights. Clears the physics system and resets the every-frame callback. Generally a Good Thing to put this at the beginning of scripts to make sure everything is cleared out each time you execute.
(clear) ; without this we would accumulate a new cube every time F5 was pressed (build-cube)
void
Starts saving frames to disk. Type can be one of "tif", "jpg" or "ppm". Filenames are built with the frame number added, padded to 5 zeros.
(start-framedump "frame" "jpg")
void
Stops saving frames to disk.
(end-framedump)
void
Displays help information on a fluxus function. For running in the repl mainly.
(help "pop")