Skip to content

Instantly share code, notes, and snippets.

View Bri-G's full-sized avatar
🏠
I may be slow to respond.

Bri-G Bri-G

🏠
I may be slow to respond.
View GitHub Profile
@Bri-G
Bri-G / Python.ply
Created April 3, 2015 19:01
Python
ply
format ascii 1.0
comment Exported by R3DScanner v1.9.0
element vertex 21
property float x
property float y
property float z
property uchar red
property uchar green
property uchar blue
@Bri-G
Bri-G / Starfields2.lua
Created June 19, 2012 10:00
Starfields 3 - this one spins around a star matrix
-- StarfFields by Bri_G based on HTML by Seb Lee-Delisle
-- Rotating field around a central star matrtix
--[[ if require ~= nil then
require("loveCodea")
end --]]
function setup()
--
fov = 250
@Bri-G
Bri-G / box.obj
Last active December 31, 2015 05:39
Simple 3D objects for viewing on iPad
# Blender v2.68 (sub 0) OBJ File: ''
# www.blender.org
o Cube
v 1.000000 -1.000000 -1.000000
v 1.000000 -1.000000 1.000000
v -1.000000 -1.000000 1.000000
v -1.000000 -1.000000 -1.000000
v 1.000000 1.000000 -0.999999
v 0.999999 1.000000 1.000001
@Bri-G
Bri-G / Adder.obj
Last active December 30, 2015 21:29
Elite Object models for display in ModelViewer Codea by Ignatz
########## Header ##########
#
# Object: Adder.obj
#
# Vertices 30
# Faces 26
#
########## End Header ##########
v 18.000000 6.000000 20.733334
@Bri-G
Bri-G / Asp.pmesh
Last active December 30, 2015 16:59
Elite Models for display in ModelViewer
P = {
18.000000, 6.000000, 20.733334,
-18.000000, -1.000000, 47.733334,
18.000000, -1.000000, 47.733334,
-18.000000, 6.000000, 20.733334,
18.000000, 6.000000, -32.266666,
-18.000000, -8.000000, -32.266666,
18.000000, -8.000000, -32.266666,
18.000000, -8.000000, 20.733334,
-18.000000, -8.000000, 20.733334,
@Bri-G
Bri-G / 3DObj01.txt
Last active December 30, 2015 11:49
Transfered Ignast 3D model from Codea model viewer
P = {
0 , -0.525731 , 0.850651,
0.850651 , 0 , 0.525731,
0.850651 , 0 ,-0.525731,
-0.850651 , 0 , -0.525731,
-0.850651 , 0 ,0.525731,
-0.525731 , 0.850651 , 0,
0.525731 , 0.850651 , 0,
0.525731 , -0.850651 , 0,
-0.525731 ,-0.850651 , 0,
@Bri-G
Bri-G / RoundRectStyled
Created September 3, 2013 10:23
A Lua file for Codea to generate rounded rectangle buttons and use a saved style to simplify code
-- Main
function setup()
saveProjectInfo("Description", "Cornered buttons demo")
saveProjectInfo("Version", "1.002 beta")
saveProjectInfo("Author", "Bri_G")
-- set up the function call parameters to play with the buttons
-- all self explanatory except cr which is the curvature control
-- note parameter range affects output, distortions are possible
parameter("cr",0,1,1)
@Bri-G
Bri-G / L-system.lua
Created July 11, 2012 11:23
A simple L-system generator and viewer
-- L-system parser
-- by Bri_G
if require then
require("loveCodea")
end
-- Use this function to perform your initial setup
function setup()
--
@Bri-G
Bri-G / floodit3.lua
Created July 9, 2012 10:07
Flood-it version 3 from veeeralp
--veeralp Flood-it
-- version 3 with win/lose messages in
if require ~= nil then
require("loveCodea")
end
function setup()
displayMode(FULLSCREEN_NO_BUTTONS)
@Bri-G
Bri-G / Flood-pad.lua
Created July 6, 2012 12:10
Flood-it first working
function setup()
    displayMode(FULLSCREEN)
    
    grid = {}  
    turnsStart = 25
    turnsUsed = 0
    turnsLeft = turnsStart - turnsUsed
    -- using a multiple of 14 for the cells used in cellNo
    cellNo = 14