Wiki
Clone wikiCore / CodeaGlobal
Back to Beyond the Codea in-app reference
Codea's global variables
The tables below, organised by type of value and alphabetically, list the global variables in Codea version 1.5.1.
Numbers
Variable | number | Comment/link |
---|---|---|
ADDITIVE | 1 | See 'Graphics' chapter of Codea's in-app reference. |
ANY | 6 | See 'Display' chapter of Codea's in-app reference. |
BEGAN | 0 | See 'Touch' chapter of Codea's in-app reference. |
CAMERA_BACK | 1 | See 'Graphics' chapter of Codea's in-app reference. |
CAMERA_FRONT | 2 | See 'Graphics' chapter of Codea's in-app reference. |
CANCELLED | 3 | Possible touch state. |
CENTER | 2 | See 'Graphics' chapter of Codea's in-app reference. |
CHAIN | 3 | See 'Physics' chapter of Codea's in-app reference. |
CIRCLE | 0 | See 'Physics' chapter of Codea's in-app reference. |
COMPOUND | 4 | Reserved for future use with Codea's physics.body() function. |
CORNER | 0 | See 'Graphics' chapter of Codea's in-app reference. |
CORNERS | 1 | See 'Graphics' chapter of Codea's in-app reference. |
ContentScaleFactor | 1 (non-retina) or 2 (retina) | See 'Graphics' chapter of Codea's in-app reference. |
CurrentOrientation | 2 | See 'Display' chapter of Codea's in-app reference. |
DISTANCE | 3 | See 'Physics' chapter of Codea's in-app reference. |
DST_ALPHA | 772 | See 'Graphics' chapter of Codea's in-app reference. |
DST_COLOR | 774 | See 'Graphics' chapter of Codea's in-app reference. |
DYNAMIC | 2 | See 'Physics' chapter of Codea's in-app reference. |
DeltaTime | 0.0166667 typically, being 1/60. | See 'Graphics' chapter of Codea's in-app reference. |
EDGE | 1 | See 'Physics' chapter of Codea's in-app reference. |
ENDED | 2 | See 'Touch' chapter of Codea's in-app reference. |
ElapsedTime | 0.0166667 or greater, typically. | See 'Graphics' chapter of Codea's in-app reference. |
FORMAT_MONO16 | 4353 | See 'Sounds' chapter of Codea's in-app reference. |
FORMAT_MONO8 | 4352 | See 'Sounds' chapter of Codea's in-app reference. |
FORMAT_STEREO16 | 4355 | See 'Sounds' chapter of Codea's in-app reference. |
FORMAT_STEREO8 | 4354 | See 'Sounds' chapter of Codea's in-app reference. |
FULLSCREEN | 1 | See 'Display' chapter of Codea's in-app reference. |
FULLSCREEN_NO_BUTTONS | 2 | See 'Display' chapter of Codea's in-app reference. |
HEIGHT | 768 , for example. | See 'Graphics' chapter of Codea's in-app reference. |
KINEMATIC | 1 | See 'Physics' chapter of Codea's in-app reference. |
LANDSCAPE_ANY | 5 | See 'Display' chapter of Codea's in-app reference. |
LANDSCAPE_LEFT | 2 | See 'Display' chapter of Codea's in-app reference. |
LANDSCAPE_RIGHT | 3 | See 'Display' chapter of Codea's in-app reference. |
LEFT | 0 | See 'Graphics' chapter of Codea's in-app reference. |
MOVING | 1 | See 'Touch' chapter of Codea's in-app reference. |
MULTIPLY | 2 | See 'Graphics' chapter of Codea's in-app reference. |
NORMAL | 0 | See 'Graphics' chapter of Codea's in-app reference. |
ONE | 1 | See 'Graphics' chapter of Codea's in-app reference. |
ONE_MINUS_DST_ALPHA | 773 | See 'Graphics' chapter of Codea's in-app reference. |
ONE_MINUS_DST_COLOR | 775 | See 'Graphics' chapter of Codea's in-app reference. |
ONE_MINUS_SRC_ALPHA | 771 | See 'Graphics' chapter of Codea's in-app reference. |
ONE_MINUS_SRC_COLOR | 769 | See 'Graphics' chapter of Codea's in-app reference. |
POLYGON | 2 | See 'Physics' chapter of Codea's in-app reference. |
PORTRAIT | 0 | See 'Display' chapter of Codea's in-app reference. |
PORTRAIT_ANY | 4 | See 'Display' chapter of Codea's in-app reference. |
PORTRAIT_UPSIDE_DOWN | 1 | See 'Display' chapter of Codea's in-app reference. |
PRISMATIC | 2 | See 'Physics' chapter of Codea's in-app reference. |
PROJECT | 2 | See 'Graphics' chapter of Codea's in-app reference. |
RADIUS | 3 | See 'Graphics' chapter of Codea's in-app reference. |
RETAINED | 1 | See 'Display' chapter of Codea's in-app reference. |
REVOLUTE | 1 | See 'Physics' chapter of Codea's in-app reference. |
RIGHT | 1 | See 'Graphics' chapter of Codea's in-app reference. |
ROPE | 10 | See 'Physics' chapter of Codea's in-app reference. |
ROUND | 0 | See 'Graphics' chapter of Codea's in-app reference. |
SOUND_NOISE | 3 | See 'Sounds' chapter of Codea's in-app reference. |
SOUND_SAWTOOTH | 1 | See 'Sounds' chapter of Codea's in-app reference. |
SOUND_SINEWAVE | 2 | See 'Sounds' chapter of Codea's in-app reference. |
SOUND_SQUAREWAVE | 0 | See 'Sounds' chapter of Codea's in-app reference. |
SQUARE | 1 | See 'Graphics' chapter of Codea's in-app reference. |
SRC_ALPHA | 770 | See 'Graphics' chapter of Codea's in-app reference. |
SRC_ALPHA_SATURATE | 776 | See 'Graphics' chapter of Codea's in-app reference. |
SRC_COLOR | 768 | See 'Graphics' chapter of Codea's in-app reference. |
STANDARD | 0 | See 'Display' chapter of Codea's in-app reference. |
STATIC | 0 | See 'Physics' chapter of Codea's in-app reference. |
STATIONARY | 4 | Possible touch state. |
WELD | 8 | See 'Physics' chapter of Codea's in-app reference. |
WIDTH | 749 , for example | See 'Graphics' chapter of Codea's in-app reference. |
ZERO | 0 | See 'Graphics' chapter of Codea's in-app reference. |
Strings
Variable | string | Comment/link |
---|---|---|
BACKSPACE | "" | See 'Display' chapter of Codea's in-app reference. |
CAMERA | CAMERA | See 'Graphics' chapter of Codea's in-app reference. |
DATA | data | See 'Sounds' chapter of Codea's in-app reference. |
DECODE | decode | Reserved for future use with Codea's sound() function. |
ENCODE | encode | Used with Codea's sound() function. |
RETURN | \n | |
SOUND_BLIT | blit | See 'Sounds' chapter of Codea's in-app reference. |
SOUND_EXPLODE | explode | See 'Sounds' chapter of Codea's in-app reference. |
SOUND_HIT | hit | See 'Sounds' chapter of Codea's in-app reference. |
SOUND_JUMP | jump | See 'Sounds' chapter of Codea's in-app reference. |
SOUND_PICKUP | pickup | See 'Sounds' chapter of Codea's in-app reference. |
SOUND_POWERUP | powerup | See 'Sounds' chapter of Codea's in-app reference. |
SOUND_RANDOM | random | See 'Sounds' chapter of Codea's in-app reference. |
SOUND_SHOOT | shoot | See 'Sounds' chapter of Codea's in-app reference. |
_VERSION | Lua 5.1 | Part of Lua |
Userdata
Variable | Codea userdata type | Comment/link |
---|---|---|
CurrentTouch | touch | See 'Touch' chapter of Codea's in-app reference. |
Gravity | vec2 | See 'Accelerometer' chapter of Codea's in-app reference. |
RotationRate | vec3 | See 'Accelerometer' chapter of Codea's in-app reference. |
UserAcceleration | vec3 | See 'Accelerometer' chapter of Codea's in-app reference. |
Tables
Some tables are used as namespaces, to group together other numbers, strings, userdata, tables or functions.
Variable | Comment/link |
---|---|
_G | Part of Lua |
coroutine | Part of the Lua basic library. |
debug | Part of Lua, a standard library. |
http | See 'Network' chapter of Codea's in-app reference. |
io | Part of Lua, a standard library. |
math | Part of Lua, a standard library. |
os | Part of Lua, a standard library. |
output | See 'Parameters' chapter of Codea's in-app reference. |
package | Part of Lua, a standard library. |
parameter | See 'Parameters' chapter of Codea's in-app reference. |
physics | See 'Physics' chapter of Codea's in-app reference. |
string | Part of Lua, a standard library. |
table | Part of Lua, a standard library. |
tween | See 'Animation' chapter of Codea's in-app reference. |
Functions
Variable | Comment/link |
---|---|
applyMatrix | See 'Graphics' chapter of Codea's in-app reference. |
assert | Part of Lua |
background | See 'Graphics' chapter of Codea's in-app reference. |
backingMode | See 'Display' chapter of Codea's in-app reference. |
blendMode | See 'Graphics' chapter of Codea's in-app reference. |
buffer | See 'Shaders & Mesh' chapter of Codea's in-app reference. |
camera | See 'Graphics' chapter of Codea's in-app reference. |
cameraSource | See 'Graphics' chapter of Codea's in-app reference. |
class | |
clearLocalData | See 'Storage' chapter of Codea's in-app reference. |
clearOutput | Deprecated part of the Codea API. |
clearParameters | Deprecated part of the Codea API. |
clearProjectData | See 'Storage' chapter of Codea's in-app reference. |
clip | See 'Graphics' chapter of Codea's in-app reference. |
close | See 'Display' chapter of Codea's in-app reference. |
collectgarbage | Part of Lua |
color | See 'Graphics' chapter of Codea's in-app reference. |
deviceMetrics | |
displayMode | See 'Display' chapter of Codea's in-app reference. |
dofile | Part of Lua |
draw | Called up to 60 times a second by the Codea API. |
ellipse | See 'Graphics' chapter of Codea's in-app reference. |
ellipseMode | See 'Graphics' chapter of Codea's in-app reference. |
error | Part of Lua |
fill | See 'Graphics' chapter of Codea's in-app reference. |
font | See 'Graphics' chapter of Codea's in-app reference. |
fontMetrics | See 'Graphics' chapter of Codea's in-app reference. |
fontSize | See 'Graphics' chapter of Codea's in-app reference. |
gcinfo | Part of Lua, deprecated in Lua 5.1. |
getfenv | Part of Lua |
getmetatable | Part of Lua |
hideKeyboard | See 'Display' chapter of Codea's in-app reference. |
image | See 'Graphics' chapter of Codea's in-app reference. |
ipairs | Part of Lua |
iparameter | Deprecated part of the Codea API. |
isKeyboardShowing | See 'Display' chapter of Codea's in-app reference. |
isRecording | See 'Display' chapter of Codea's in-app reference. |
keyboardBuffer | See 'Display' chapter of Codea's in-app reference. |
line | See 'Graphics' chapter of Codea's in-app reference. |
lineCapMode | See 'Graphics' chapter of Codea's in-app reference. |
listGlobalData | See 'Storage' chapter of Codea's in-app reference. |
listLocalData | See 'Storage' chapter of Codea's in-app reference. |
listProjectData | See 'Storage' chapter of Codea's in-app reference. |
listProjectTabs | See 'Storage' chapter of Codea's in-app reference. |
load | Part of Lua |
loadfile | Part of Lua |
loadstring | Part of Lua |
matrix | See 'Vector' chapter of Codea's in-app reference. |
mesh | See 'Shaders & Mesh' chapter of Codea's in-app reference. |
modelMatrix | See 'Graphics' chapter of Codea's in-app reference. |
module | Part of Lua |
newproxy | Part of Lua |
next | Part of Lua |
noClip | See 'Graphics' chapter of Codea's in-app reference. |
noFill | See 'Graphics' chapter of Codea's in-app reference. |
noSmooth | See 'Graphics' chapter of Codea's in-app reference. |
noStroke | See 'Graphics' chapter of Codea's in-app reference. |
noTint | See 'Graphics' chapter of Codea's in-app reference. |
noise | See 'Graphics' chapter of Codea's in-app reference. |
openURL | See 'Network' chapter of Codea's in-app reference. |
ortho | See 'Graphics' chapter of Codea's in-app reference. |
pairs | Part of Lua |
pcall | Part of Lua |
perspective | See 'Graphics' chapter of Codea's in-app reference. |
point | |
pointSize | |
popMatrix | See 'Graphics' chapter of Codea's in-app reference. |
popStyle | See 'Graphics' chapter of Codea's in-app reference. |
print | Part of Lua |
projectionMatrix | See 'Graphics' chapter of Codea's in-app reference. |
pushMatrix | See 'Graphics' chapter of Codea's in-app reference. |
pushStyle | See 'Graphics' chapter of Codea's in-app reference. |
rawequal | Part of Lua |
rawget | Part of Lua |
rawset | Part of Lua |
readGlobalData | See 'Storage' chapter of Codea's in-app reference. |
readImage | See 'Storage' chapter of Codea's in-app reference. |
readLocalData | See 'Storage' chapter of Codea's in-app reference. |
readProjectData | See 'Storage' chapter of Codea's in-app reference. |
readProjectInfo | See 'Storage' chapter of Codea's in-app reference. |
readProjectTab | See 'Storage' chapter of Codea's in-app reference. |
rect | See 'Graphics' chapter of Codea's in-app reference. |
rectMode | See 'Graphics' chapter of Codea's in-app reference. |
require | Part of Lua |
resetMatrix | See 'Graphics' chapter of Codea's in-app reference. |
resetStyle | See 'Graphics' chapter of Codea's in-app reference. |
rotate | See 'Graphics' chapter of Codea's in-app reference. |
rsqrt | |
saveGlobalData | See 'Storage' chapter of Codea's in-app reference. |
saveImage | See 'Storage' chapter of Codea's in-app reference. |
saveLocalData | See 'Storage' chapter of Codea's in-app reference. |
saveProjectData | See 'Storage' chapter of Codea's in-app reference. |
saveProjectInfo | See 'Storage' chapter of Codea's in-app reference. |
saveProjectTab | See 'Storage' chapter of Codea's in-app reference. |
scale | See 'Graphics' chapter of Codea's in-app reference. |
select | Part of Lua |
setContext | See 'Graphics' chapter of Codea's in-app reference. |
setInstructionLimit | |
setfenv | Part of Lua |
setmetatable | Part of Lua |
setup | Called once when a Codea project is run. |
shader | See 'Shaders & Mesh' chapter of Codea's in-app reference. |
showKeyboard | See 'Display' chapter of Codea's in-app reference. |
smooth | See 'Graphics' chapter of Codea's in-app reference. |
sound | See 'Sounds' chapter of Codea's in-app reference. |
soundBufferSize | See 'Sounds' chapter of Codea's in-app reference. |
soundbuffer | See 'Sounds' chapter of Codea's in-app reference. |
sprite | See 'Graphics' chapter of Codea's in-app reference. |
spriteList | See 'Storage' chapter of Codea's in-app reference. |
spriteMode | See 'Graphics' chapter of Codea's in-app reference. |
spriteSize | See 'Graphics' chapter of Codea's in-app reference. |
startRecording | See 'Display' chapter of Codea's in-app reference. |
stopRecording | See 'Display' chapter of Codea's in-app reference. |
stroke | See 'Graphics' chapter of Codea's in-app reference. |
strokeWidth | See 'Graphics' chapter of Codea's in-app reference. |
supportedOrientations | See 'Graphics' chapter of Codea's in-app reference. |
text | See 'Graphics' chapter of Codea's in-app reference. |
textAlign | See 'Graphics' chapter of Codea's in-app reference. |
textMode | See 'Graphics' chapter of Codea's in-app reference. |
textSize | See 'Graphics' chapter of Codea's in-app reference. |
textWrapWidth | See 'Graphics' chapter of Codea's in-app reference. |
tint | See 'Graphics' chapter of Codea's in-app reference. |
tonumber | Part of Lua |
tostring | Part of Lua |
translate | See 'Graphics' chapter of Codea's in-app reference. |
triangulate | See 'Shaders & Mesh' chapter of Codea's in-app reference. |
type | Part of Lua |
unpack | Part of Lua |
vec2 | See 'Vector' chapter of Codea's in-app reference. |
vec3 | See 'Vector' chapter of Codea's in-app reference. |
vec4 | See 'Vector' chapter of Codea's in-app reference. |
viewMatrix | See 'Graphics' chapter of Codea's in-app reference. |
watch | Deprecated part of the Codea API. |
xpcall | Part of Lua |
zLevel | See 'Graphics' chapter of Codea's in-app reference. |
Updated