The Storyboard canvas
API provides an interface for clients to perform their own
basic drawing operations into an in-memory buffer. In order to access the drawing operations first
a canvas render extension must be created and given a unique name within the application. Once a
canvas render extension is created, a Lua canvas object can be accessed using the gre.get_canvas
call. In this documentation the object returned from the gre.get_canvas
functions will be
identified as a CANVAS object. Methods associated with the CANVAS object must be invoked using the Lua colon (:)
notation for example CANVAS:stroke_rect
The Lua canvas API is dependent on both the Lua plugin (libgre-plugin-lua
) and the
canvas render extension plugin (libgre-plugin-canvas
).
CANVAS gre.get_canvas( | name) ; |
nameThis is the name of the parameter
;