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
class Lorenz | |
{ | |
Lorenz() | |
{ | |
final float SIZE = 10; | |
PVector p = new PVector(random(-SIZE/2, SIZE), random(-SIZE/2, SIZE), random(-SIZE/2, SIZE)); | |
for (int i = 0; i != positions.length; ++i) | |
{ | |
positions[i] = p; | |
} |
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
void setup() | |
{ | |
size(500, 500, P3D); | |
colorMode(RGB, 1); | |
frameRate(25); | |
logo = loadImage("logo.png"); | |
logo.filter(INVERT); | |
} |
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
// | |
// LinkedList.c | |
// LinkedList | |
// | |
// Created by Reuben Thomas on 16/02/2014. | |
// Copyright (c) 2014 Reuben Thomas. All rights reserved. | |
// | |
#include "LinkedList.h" | |
#include <stdlib.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
void setup() | |
{ | |
size (500, 500); | |
colorMode (RGB, 1); | |
frameRate (25); | |
} | |
final int LAYERS = 5; | |
final int LOOP_LENGTH = 100; |
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.cpp | |
// functional | |
// | |
// Created by Reuben Thomas on 08/01/2014. | |
// Copyright (c) 2014 Reuben Thomas. All rights reserved. | |
// | |
#include <iostream> | |
#include <vector> |
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
//PImage logo; | |
void setup() { | |
size(500, 500, P3D); | |
colorMode(RGB, 1); | |
frameRate(25); | |
// logo = loadImage("logo.png"); | |
// logo.filter(INVERT); | |
} |
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
void setup() { | |
size(500, 500, P3D); | |
frameRate(25); | |
colorMode(RGB, 1); | |
fill(0); | |
stroke(0, 1, 1); | |
noSmooth(); | |
strokeWeight(2); | |
} |
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
#!/usr/bin/env ruby | |
module ActsAsCsv | |
def self.included(base) | |
base.extend ClassMethods | |
end | |
module ClassMethods | |
def acts_as_csv |
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
class Vec4 { | |
float x, y, z, w; | |
Vec4(float a, float b, float c, float d) { | |
x = a; | |
y = b; | |
z = c; | |
w = d; | |
} |
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
void setup() { | |
size(500, 500, P3D); | |
blendMode(ADD); | |
noFill(); | |
strokeWeight(2); | |
frameRate(25); | |
} | |
void draw() { | |
background(0); |
NewerOlder