Skip to content

Instantly share code, notes, and snippets.

Tobias Teleman tnlogy

Block or report user

Report or block tnlogy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ColorPicker.js
--# Main
-- Picker
-- Use this function to perform your initial setup
function setup()
p = Picker()
end
-- This function gets called once every frame
View Voronoi.lua
--# Main
-- Voronoi
function draw()
background(40, 40, 50)
startVoronoi()
end
View March.lua
--# Main
-- March
function setup()
local function sp(p)
return p:len() * p:dist(vec3(5,3,0))
end
local st = os.clock()
local vs = volume(sp, 9, .5, 6)
print(os.clock() - st)
View Hexagon Grid.lua
--# Main
function setup()
parameter.boolean("FILL")
parameter.integer("RANGE", 1,20,3)
parameter.boolean("LINE")
parameter.boolean("FOV")
parameter.boolean("MOVE")
hs = Hexagons():createMesh():set(0,0,color(207, 67, 67))
u = Unit(hs:pos(0,0))
View InfiniteGrid.lua
--# Main
-- Infinite Grid
function setup()
displayMode(FULLSCREEN)
g = Grid()
end
View Terrain2.lua
--# Main
-- Terrain
function setup()
displayMode(FULLSCREEN)
forward, right, up = vec3(0,0,1), vec3(-1,0,0), vec3(0,1,0)
pos = vec3(0,100,0)
t = Terrain()
A = 0
View Terrain.lua
--# Main
-- Terrain
function setup()
displayMode(FULLSCREEN)
forward, right, up = vec3(0,0,1), vec3(-1,0,0), vec3(0,1,0)
t = Terrain()
A = 0
end
@tnlogy
tnlogy / 3D touch.lua
Created Jan 6, 2014
Example of implementing 3D touch. In progress.
View 3D touch.lua
--# Main
function setup()
displayMode(FULLSCREEN)
sky = Skybox()
forward, right, up = vec3(0,0,-1), vec3(1,0,0), vec3(0,1,0)
rays = {}
-- creating some random triangles to hit
tris = {}
@tnlogy
tnlogy / GoingSouth.lua
Created Dec 25, 2013
Going Souh - Codea Cook Off code
View GoingSouth.lua
--# Clouds
Clouds = class()
function Clouds:init(x)
local s = shader([[
uniform mat4 modelViewProjection;
attribute vec4 position;
attribute vec4 color;
attribute vec2 texCoord;
@tnlogy
tnlogy / ImageTools.h
Last active May 23, 2018
A Codea addon for saving images to the photo album, share photos to facebook and detect faces in an image. Just add [self.viewController registerAddon:[ImageTools sharedInstance]]; to AppDelegate.mm
View ImageTools.h
//
// ImageTools.h
// FaceDetection
//
// Created by Tobias Teleman on fredag 12 april 2013
// Copyright (c) Tobias Teleman. All rights reserved.
//
#import <Foundation/Foundation.h>
You can’t perform that action at this time.