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
| #include "cinder/app/AppNative.h" | |
| #include "cinder/gl/gl.h" | |
| #include "cinder/Rand.h" | |
| #define CIRCLE_COUNT 100; | |
| using namespace ci; | |
| using namespace ci::app; | |
| using namespace std; |
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
| Grid griddle; | |
| void setup() { | |
| size(800, 800, P3D); | |
| background(255); | |
| griddle = new Grid(4,40, 40, 700, 700); | |
| } | |
| void 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
| Grid griddle; //declare the grid object | |
| void setup() { | |
| size(800, 800, P3D); | |
| //initialise the grid object Grid(radius, rows, cols, width, height) | |
| griddle = new Grid(3, 35, 35, 600, 600); | |
| } | |
| void 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
| import controlP5.*; | |
| //import processing.opengl.*; | |
| import peasy.test.*; | |
| import peasy.org.apache.commons.math.*; | |
| import peasy.*; | |
| import peasy.org.apache.commons.math.geometry.*; | |
| ControlP5 cp5; //declare the controlp5 object | |
| PeasyCam cam; //declare the peasy cam object |
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
| Mover [] movers; | |
| Patch [] patches; | |
| float count = 0; | |
| void setup() { | |
| size(1200, 675); | |
| movers = new Mover[150]; //create an array of movers | |
| patches = new Patch[10]; //create an array of friction patches | |
| for (int i = 0; i < movers.length; i++) { | |
| movers[i] = new Mover(); |
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
| Mover [] movers; | |
| Patch [] patches; | |
| float count = 0; | |
| void setup() { | |
| size(1200, 675); | |
| movers = new Mover[150]; //create an array of movers | |
| patches = new Patch[10]; //create an array of friction patches | |
| for (int i = 0; i < movers.length; i++) { | |
| movers[i] = new Mover(); |
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
| class Flake { | |
| PVector loc, vel, acc; //create Pvectors for location, velocity and acceleration | |
| float mass, radius, lifespan; | |
| float x, xoff; //variables for perlin noise | |
| boolean isTrapped = false; //boolean variable for determining whether the flake is over a letter | |
| float c = 0.0001; //this is the drag co-efficient of the word | |
| float theta, dTheta; //variables for rotating the polygon | |
| Flake() { |
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
| #Written by Craig Pickard for HackerSchool Application for Summer Batch 1, 2015 | |
| #Language: Python | |
| #This code prints out the integers 1-100 (inclusive), replacing every integer value that's divisible by 3 with the string #"Crackle", every integer that's divisible by 5 with the string "Pop", and every integer that's divisible by both 3 and 5 with | |
| #the word "CracklePop". | |
| snapList = [] | |
| for i in range (1,101): | |
| if i % 3 == 0 and i % 5 == 0: | |
| snapList.append("CracklePop") |
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
| /* | |
| Written by Craig Pickard for HackerSchool Application for Summer Batch 1, 2015 | |
| Language: Processing | |
| This code prints out integers 1-100 (inclusive), replacing every integer value that's divisible by 3 with the string "Crackle", | |
| every integer that's divisible by 5 with the word "Pop", and every integer that's divisible by both 3 and 5 with | |
| the string "CracklePop". | |
| */ | |
| void setup() { |
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
| /* | |
| Written by Craig Pickard for HackerSchool Application for Summer Batch 1, 2015 | |
| Language: Javascript | |
| This code prints out integers 1-100 (inclusive), replacing every integer value that's divisible by 3 with the string "Crackle", | |
| every integer that's divisible by 5 with the word "Pop", and every integer that's divisible by both 3 and 5 with | |
| the string "CracklePop". | |
| */ | |
| var snapList = []; |