Wiki
Clone wikiCore / HintsAndTips
Beyond the Codea in-app reference
Further explanation of how Codea works and aspects of the Codea API and Shader Lab (beta) not documented in Codea's in-app reference:
How Codea works
- The Codea Editor: Further information about using the Codea Editor.
- The Codea Viewer: Further information about the Codea Viewer and its use.
- Understanding how Codea executes your code: An explanation on codea structure and why not to attempt to draw or print from the touched function.
The Codea API in Lua
- Codea's global variables: Lists of the global variables provided by the Codea API.
Graphics
- backingMode() function: Further information about the built-in Codea
backingMode()
function. - color() function: Further information about the built-in Codea
color()
function and the userdata value it returns. - fill() function: Further information about the built-in Codea
fill()
function. - image() function: Further information about the built-in Codea
image()
function. - line() function: Further information about the built-in Codea
line()
function. - point() function: Further information about the built-in Codea
point()
function. - pointSize() function: Further information about the built-in Codea
pointSize()
function. - pushStyle() function: Further information about the built-in Codea
pushStyle()
function. - tint() function: Further information about the built-in Codea
tint()
function.
Shaders & Mesh
- mesh() function: Further information about the built-in Codea
mesh()
function and the userdata value that it returns. - triangulate() function: Further information about the built-in Codea
triangulate()
function.
Lua
- Classes in Lua and Codea: Working with classes in Lua and Codea.
- Codea's Lua number type: Information about how Codea implements Lua's number basic type.
- Codea's user-defined types: Information about how Codea extends Lua's basic types.
- debug.getinfo() function: Further information about the
debug.getinfo()
function, part of the Lua standard libraries available in Codea. - os.time() function: Further information about Lua's
os.time()
function and the value that it returns. - print() function: Further information about Lua's
print()
function. - setInstructionLimit() function: How to change the default limit to avoid the error 'Lua program has exceeded instruction limit'.
- string.format() function: Further information about Lua's
string.format()
function and the rules for the format string.
Parameters
- iparameter() function: Further information about the built-in Codea
iparameter()
function. - parameter table: Further information about the built-in Codea
parameter
table of functions.
Physics
- physics.body() function: Further information about the built-in Codea
physics.body()
function and the userdata value that it returns.
Animation
- tween API: Further information about the built-in Codea
tween
API.
Sounds
- sound() function: Further information about the built-in Codea
sound()
function.
Display
- BACKSPACE variable: Further information about the built-in Codea
BACKSPACE
variable. - RETURN variable: Further information about the built-in Codea
RETURN
variable.
Vector
- matrix() function: Further information about the built-in Codea
matrix()
function. - rsqrt() function: Further information about the built-in Codea
rsqrt()
function. - vec2() function: Further information about the built-in Codea
vec2()
function. - vec3() function: Further information about the built-in Codea
vec3()
function. - vec4() function: Further information about the built-in Codea
vec4()
function.
Accelerometer
- deviceMetrics() function: Further information about the built-in Codea
deviceMetrics()
function. - UserAcceleration variable: Further information about the built-in Codea
UserAcceleration
variable.
Network
- http.get() function: Information about the deprecated built-in Codea function, replaced by
http.request()
. - openURL() function: Further information about the built-in Codea
openURL()
function, including its use with the Mail app and emails.
Codea's Shader Lab (beta)
- Create a new basic shader: Information about a basic shader.
Updated