This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Orb-Bits | |
-- ======================= | |
-- Version 1.0 | |
-- 8 Jan 2012 | |
-- Mark Sumner | |
-- [email protected] | |
-- ======================= | |
function setup() | |
displayMode(FULLSCREEN) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ==================== | |
-- Chooser | |
-- ver. 0.1 | |
-- a control for choosing between two options | |
-- ==================== | |
-- This control depends on a global instance of | |
-- the class Font10x12 called afont. That instance | |
-- should be created in the Main setup() function | |
-- before any instance of this class is created. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SImage = class() | |
function SImage:init(name, img) | |
self.frame = Frame(0,0,0,0) | |
self.name = name | |
self.img = img | |
self.sel = false | |
end | |
function SImage:draw() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ColorTray | |
-- ver. 0.1 | |
-- a control for displaying an array of colors | |
-- ==================== | |
ColorTray = class() | |
function ColorTray:init(x1, y1, x2, y2, clr) | |
local x, y, w, h, i | |
self.frame = Frame(x1, y1, x2, y2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Slider | |
-- ver. 0.1 | |
-- a control that replicates the iparameter slider | |
-- ==================== | |
-- This control depends on a global instance of | |
-- the class Font10x12 called afont. That instance | |
-- should be created in the Main setup() function | |
-- before any instance of this class is created. | |
Slider = class() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DataSeries = class() | |
function DataSeries:init(name, length, min, max, symbol, symbolsize, thick, clr) | |
self.name = name | |
self.symbol = symbol | |
self.symbolsize = symbolsize | |
self.nextpt = 0 | |
self.length = length | |
self.lineclr = clr | |
self.linethick = thick |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Arena = class() | |
function Arena:init(l, b, r, t) | |
-- you can accept and set parameters here | |
self.frame = Frame(l, b, r, t) | |
self.panel = Frame(l + 1, b + 1, r - 1, b + 108) | |
self.stop = Frame(r - 100, b + 35, r - 60, b + 75) | |
self.robots = {} | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Token = class() | |
function Token:init(code, x, y, clr) | |
-- you can accept and set parameters here | |
self.x = x | |
self.y = y | |
self.code = code | |
end | |
function Token:draw() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Arena = class() | |
function Arena:init(l, b, r, t) | |
-- you can accept and set parameters here | |
self.frame = Frame(l, b, r, t) | |
self.panel = Frame(l + 1, b + 1, r - 1, b + 108) | |
self.stop = Frame(r - 100, b + 35, r - 60, b + 75) | |
self.robots = {} | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TextBox = class() | |
-- TextBox | |
-- ver. 1.0 | |
-- a control for basic string editing | |
-- ==================== | |
function TextBox:init(x, y, w, s) | |
self.x = x | |
self.y = y |
OlderNewer