Skip to content

Instantly share code, notes, and snippets.

---------------------------------------------------------
-- Include --
-- Dynamically loads a codea tab or project into and --
-- isolated enviroment or _G --
-- Written by XanDDemoX --
-- Version 1.01 --
---------------------------------------------------------
include = {}
-- create meta table
local includemeta = {}
--# Main
--Main
function setup()
ShaderList={Fog,Ghost,Flip,Hole,Transparent,Stencil}
parameter.integer("ShaderChoice",1,6,1,SetupShader)
parameter.integer("Slider",1,1000,500)
--parameter.boolean("Option",false)
end
@loopspace
loopspace / 1aTabOrder
Created May 20, 2013 10:41
Library UI Release v2.3 -A library of classes and functions for user interface.
Library UI Tab Order
------------------------------
This file should not be included in the Codea project.
#ChangeLog
#Main
#NumberSpinner
#CubicSelector
#PictureBrowser
#Keyboard
#Keypad
--# Notes
--# ReadMe
--[[
First, don't be put off by all this text. This utility is extremely simple to use.
It creates code that reproduces images so you don't need to include them separately with your projects. It uses RLE, a well known compression technique. Essentially, it runs through all the pixels, and every time the color changes, it stores the last color and the number of pixels it applied to.
FUNCTIONALITY
--# Notes
--[[
These are notes for 3D Town version 2.25, 12 May 2012 by Ignatz
DESCRIPTION
This project allows you to create a 3D map with buildings you can walk around, and through
You customise it by adding buildings and other settings in the Map tab
@dermotbalson
dermotbalson / gist:5487143
Last active December 16, 2015 19:39
timers
function setup()
--set up parameters so we can watch the FPS
parameter.boolean("Smoothing",false)
parameter.integer("FPS_One",1,65,60)
parameter.integer("FPS_Ave60",1,65,60)
parameter.integer("FPS_Weighted",1,65,60)
--and the balloon count
parameter.integer("Balloon_Count",0,1000,0)
balls={} --to hold balloon details
@apendley
apendley / cmodule.codeaproject
Last active December 16, 2015 09:18
Work in progress on a module system designed for Codea
--# cmodule
-- cmodule
-- v0.1.1
-- todo:
-- * document
-- * look for optimizations
-- * investigate better ways to handle dependency cycles
-- * support exported projects
@apendley
apendley / tparameter.codeaproject
Last active December 16, 2015 07:49
tparameter, a libary for Codea that allows parameters to be bound to arbitrary tables (as opposed to only _G, which is all Codea's parameter function allows). Project contains the tparameter class, as well as the Timer class, which is used by the example code. See Main and Ellipse for many examples of how to use tparameter. See http://twolivesle…
--# tparameter
-- tparameter
-- v1.0.2
local _updateRate = 1/60
local _refreshDelay = 1/60
local _reloadSteps, _reloadStepInterval = 4, 1
local _chooseParam = 'choose_object_to_inspect'
local _selectParam = 'SELECT'
local _chooseWatchParam = 'object_parameter_inspector'
@devilstower
devilstower / gist:5384106
Created April 14, 2013 20:36
Cider Controls 1.6
--# Frame
Frame = class()
-- Frame
-- ver. 1.5
-- a simple rectangle for holding controls.
-- ====================
@devilstower
devilstower / gist:5384102
Created April 14, 2013 20:34
Cider 1.6
--# UIElement
UIElement = class()
CONTROLTYPE = 0
LABELTYPE = 1
BUTTONTYPE = 2
TEXTBOXTYPE = 3
SWITCHTYPE = 4
SLIDERTYPE = 5