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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Shiny Triangles</title> | |
| <style type="text/css"> | |
| html, body { | |
| width: 100%; | |
| height: 100%; | |
| margin: 0px; |
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
| ArrayList poop; | |
| int distance =50; | |
| boolean flag=true; | |
| void setup() | |
| { | |
| size(500, 500); | |
| smooth(); | |
| poop = new ArrayList(); | |
| for (int i=0;i<120;i++) { | |
| PVector PD = new PVector(random(-150, 150), random(-150, 150)); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
| <style> | |
| * { | |
| margin: 0; padding: 0; | |
| } | |
| html, body { | |
| height: 100%; |
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
| float dx = 32; | |
| float dy = 28; | |
| void drawSite(float x, float y) { | |
| float weight = dx * 128 / (32 + dist(x, y, mouseX, mouseY)); | |
| if (weight > 1) { | |
| strokeWeight(weight); | |
| point(x, y); | |
| } | |
| } |
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
| Ball [] balls = new Ball [20]; | |
| Ball2 [] balls2 = new Ball2 [1]; | |
| PFont font; | |
| PShape gbda; | |
| void setup() { | |
| size(970, 550); | |
| smooth(); | |
| // noCursor(); | |
| font = loadFont("Helvetica-Bold-48.vlw"); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Circles</title> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
| <style> | |
| * { | |
| margin: 0; padding: 0; | |
| } | |
| html, body { |
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 processing.video.*; | |
| import codeanticode.syphon.*; | |
| import processing.serial.*; | |
| Serial myPort; | |
| PGraphics canvas; | |
| SyphonServer server; | |
| int videoWidth = 1280; | |
| int videoHeight = 720; |