This file contains 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
// | |
// ImageTools.h | |
// FaceDetection | |
// | |
// Created by Tobias Teleman on fredag 12 april 2013 | |
// Copyright (c) Tobias Teleman. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains 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
--# Clouds | |
Clouds = class() | |
function Clouds:init(x) | |
local s = shader([[ | |
uniform mat4 modelViewProjection; | |
attribute vec4 position; | |
attribute vec4 color; | |
attribute vec2 texCoord; |
This file contains 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
--# 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 = {} |
This file contains 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
--# 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 |
This file contains 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
--# 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 |
This file contains 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
--# Main | |
-- Infinite Grid | |
function setup() | |
displayMode(FULLSCREEN) | |
g = Grid() | |
end | |
This file contains 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
--# 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)) |
This file contains 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
--# 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) |
This file contains 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
--# Main | |
-- Voronoi | |
function draw() | |
background(40, 40, 50) | |
startVoronoi() | |
end | |
This file contains 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
--# Main | |
-- Picker | |
-- Use this function to perform your initial setup | |
function setup() | |
p = Picker() | |
end | |
-- This function gets called once every frame |