Complete Codea compatible list

Hi coding experts,

I want to know is there somewhere I can download and print an entire list of Codea’s commands?? it would help me learn faster as I can look things up and see the syntax rather than guessing or posting 20x a day here and annoying people. Something like a reference guide would be awesome, even if its 200-300 pages, I don’t care, ill print it out.

I’d prefer a complete Codea command list but if that doesnt exist, maybe I could print out a list of lua commands from a website but I dunno if they would all be compatible, thats why I’d prefer it were a codea list.

http://twolivesleft.com/Codea/Reference/ is an online reference for the Codea API.

@Paul123 Hre’s a list of variables and functions, no explanations or syntax.


ADDITIVE
ANY
BACKSPACE
BEGAN
CAMERA
CAMERA_BACK
CAMERA_FRONT
CANCELLED
CENTER
CHAIN
CIRCLE
COMPOUND
CORNER
CORNERS
ContentScaleFactor
CurrentOrientation
CurrentTouch
DATA
DECODE
DISTANCE
DST_ALPHA
DST_COLOR
DYNAMIC
DeltaTime
EDGE
ENCODE
ENDED
ElapsedTime
FORMAT_MONO16
FORMAT_MONO8
FORMAT_STEREO16
FORMAT_STEREO8
FULLSCREEN
FULLSCREEN_NO_BUTTONS
Gravity
HEIGHT
KINEMATIC
LANDSCAPE_ANY
LANDSCAPE_LEFT
LANDSCAPE_RIGHT
LEFT
MOVING
MULTIPLY
NORMAL
ONE
ONE_MINUS_DST_ALPHA
ONE_MINUS_DST_COLOR
ONE_MINUS_SRC_ALPHA
ONE_MINUS_SRC_COLOR
POLYGON
PORTRAIT
PORTRAIT_ANY
PORTRAIT_UPSIDE_DOWN
PRISMATIC
PROJECT
RADIUS
RETAINED
RETURN
REVOLUTE
RIGHT
ROPE
ROUND
RotationRate
SOUND_BLIT
SOUND_EXPLODE
SOUND_HIT
SOUND_JUMP
SOUND_NOISE
SOUND_PICKUP
SOUND_POWERUP
SOUND_RANDOM
SOUND_SAWTOOTH
SOUND_SHOOT
SOUND_SINEWAVE
SOUND_SQUAREWAVE
SQUARE
SRC_ALPHA
SRC_ALPHA_SATURATE
SRC_COLOR
STANDARD
STATIC
STATIONARY
UserAcceleration
WELD
WIDTH
ZERO
_G
_VERSION
alert
applyMatrix
assert
background
backingMode
blendMode
buffer
camera
cameraSource
class
clearLocalData
clearOutput
clearParameters
clearProjectData
clip
close
collectgarbage
collide
color
coroutine.create
coroutine.resume
coroutine.running
coroutine.status
coroutine.wrap
coroutine.yield
debug.debug
debug.getfenv
debug.gethook
debug.getinfo
debug.getlocal
debug.getmetatable
debug.getregistry
debug.getupvalue
debug.setfenv
debug.sethook
debug.setlocal
debug.setmetatable
debug.setupvalue
debug.traceback
deviceMetrics
displayMode
dofile
draw
ellipse
ellipseMode
error
fill
font
fontMetrics
fontSize
gcinfo
getfenv
getmetatable
hideKeyboard
http.get
http.request
image
io.close
io.flush
io.input
io.lines
io.open
io.output
io.popen
io.read
io.stderr
io.stdin
io.stdout
io.tmpfile
io.type
io.write
ipairs
iparameter
isKeyboardShowing
isRecording
keyboardBuffer
line
lineCapMode
listGlobalData
listLocalData
listProjectData
listProjectTabs
load
loadfile
loadstring
math.abs
math.acos
math.asin
math.atan
math.atan2
math.ceil
math.cos
math.cosh
math.deg
math.exp
math.floor
math.fmod
math.frexp
math.huge
math.ldexp
math.log
math.log10
math.max
math.min
math.mod
math.modf
math.pi
math.pow
math.rad
math.random
math.randomseed
math.sin
math.sinh
math.sqrt
math.tan
math.tanh
matrix
mesh
modelMatrix
module
newproxy
next
noClip
noFill
noSmooth
noStroke
noTint
noise
openURL
ortho
os.clock
os.date
os.difftime
os.getenv
os.remove
os.rename
os.setlocale
os.time
os.tmpname
output.clear
package.config
package.cpath
package.loaded._G
package.loaded.coroutine
package.loaded.debug
package.loaded.http
package.loaded.io
package.loaded.math
package.loaded.os
package.loaded.output
package.loaded.package
package.loaded.parameter
package.loaded.physics
package.loaded.string
package.loaded.table
package.loaders.1
package.loaders.2
package.loaders.3
package.loaders.4
package.loadlib
package.path
package.seeall
pairs
parameter.action
parameter.boolean
parameter.clear
parameter.color
parameter.integer
parameter.number
parameter.text
parameter.watch
pcall
perspective
physics.body
physics.gravity
physics.iterations
physics.joint
physics.pause
physics.pixelToMeterRatio
physics.queryAABB
physics.raycast
physics.raycastAll
physics.resume
point
pointSize
popMatrix
popStyle
print
projectionMatrix
pushMatrix
pushStyle
rawequal
rawget
rawset
readGlobalData
readImage
readLocalData
readProjectData
readProjectInfo
readProjectTab
rect
rectMode
require
resetMatrix
resetStyle
restart
rotate
rsqrt
saveGlobalData
saveImage
saveLocalData
saveProjectData
saveProjectInfo
saveProjectTab
scale
select
setContext
setInstructionLimit
setfenv
setmetatable
setup
shader
showKeyboard
smooth
sound
soundBufferSize
soundbuffer
sprite
spriteBatching
spriteList
spriteMode
spriteSize
startRecording
stopRecording
string.byte
string.char
string.dump
string.find
string.format
string.gfind
string.gmatch
string.gsub
string.len
string.lower
string.match
string.rep
string.reverse
string.sub
string.upper
stroke
strokeWidth
supportedOrientations
table.concat
table.foreach
table.foreachi
table.getn
table.insert
table.maxn
table.remove
table.setn
table.sort
text
textAlign
textMode
textSize
textWrapWidth
tint
tonumber
tostring
touched
translate
triangulate
tween.delay
tween.easing.backIn
tween.easing.backInOut
tween.easing.backOut
tween.easing.backOutIn
tween.easing.bounceIn
tween.easing.bounceInOut
tween.easing.bounceOut
tween.easing.bounceOutIn
tween.easing.circIn
tween.easing.circInOut
tween.easing.circOut
tween.easing.circOutIn
tween.easing.cubicIn
tween.easing.cubicInOut
tween.easing.cubicOut
tween.easing.cubicOutIn
tween.easing.elasticIn
tween.easing.elasticInOut
tween.easing.elasticOut
tween.easing.elasticOutIn
tween.easing.expoIn
tween.easing.expoInOut
tween.easing.expoOut
tween.easing.expoOutIn
tween.easing.linear
tween.easing.quadIn
tween.easing.quadInOut
tween.easing.quadOut
tween.easing.quadOutIn
tween.easing.quartIn
tween.easing.quartInOut
tween.easing.quartOut
tween.easing.quartOutIn
tween.easing.quintIn
tween.easing.quintInOut
tween.easing.quintOut
tween.easing.quintOutIn
tween.easing.sineIn
tween.easing.sineInOut
tween.easing.sineOut
tween.easing.sineOutIn
tween.hasExpired
tween.loop.forever
tween.loop.once
tween.loop.pingpong
tween.path
tween.play
tween.reset
tween.resetAll
tween.sequence
tween.start
tween.stop
tween.stopAll
tween.update
type
unpack
vec2
vec3
vec4
viewMatrix
watch
xpcall
zLevel

Thanks everyone

You can also do

for k, v in pairs(_G) do
    print(tostring(k) .. ": ". .. tostring(v))
end

Or press the eye icon while coding, but Simeon’s link is more updated.

Maybe it is a stupid question, but can you print the reference on paper?

Not really any way to print it, as there’s multiple sections with tons of stuff in them, it needs tabs. I don’t see why you would need to print it, thoug, as there’s an eye button on the keyboard that toggles documentation on the side.

@SkyTheCoder Not everyone likes online manuals or documentation. I prefer hard copies of things. I have a link to the Lua book, but I still get my book out when I want to look for something. It’s easier to have the book open when I’m trying to figure something out in a program on the iPad.

Yes, I much prefer having an open book to reading on my ipad. sometimes you just cant beat having a paper manual in your hands.

@Paul123 If you’re still looking for a paper copy, you can use the link below. Bring up the section that you want, then drag your finger around to highlight what you want. Tap on copy then paste it into notes. You can then print the sections from there. I haven’t found another way to print it.

http://twolivesleft.com/Codea/Reference/

You could always create a string by looping through _G and emailing it to yourself.

@Briarfox you wouldn’t get the description or example that way

If you’re looking for offline access for the manual, try SiteSucker.