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 scale = 50; | |
| float[] x = linspace(-6, 6, 11); | |
| float[] y = linspace(-6, 6, 11); | |
| float[] xnew = linspace(-6, 6, 100); | |
| float[] ynew = linspace(-6, 6, 100); | |
| float[][] z = new float[x.length][y.length]; | |
| float[][] znew = new float[xnew.length][ynew.length]; | |
| public void setup() { | |
| size(600, 600); |
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
| int pSize = 4; | |
| int NI; | |
| int NJ; | |
| float dens = 0.33; | |
| int[][] map; | |
| void setup(){ | |
| fullScreen(); | |
| //size(1000, 1000); | |
| noStroke(); |
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 bpy | |
| path = "File Path" | |
| f = open(path) | |
| str = f.read() | |
| sstr = str.split('/') | |
| VertStr = sstr[0] | |
| FaceStr = sstr[1] | |
| VertSstr = VertStr.split('\n') | |
| FaceSstr = FaceStr.split('\n') |
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
| col = RGB(0, 0, 200) | |
| rectWave = function(ni,nj,size) | |
| for i = 1, ni do | |
| for j = 1, nj do | |
| local fac = obj.time+i/10 | |
| rect(size*i*4, size*j*4, math.sin(fac)*size) | |
| if (j ~= nj and i ~= ni) then | |
| fac = fac + 1 / 20 | |
| rect(size*i*4+size*2, size*j*4+size*2, math.sin(fac)*size) |
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 <HID-Project.h> | |
| #include <HID-Settings.h> | |
| int prevState = LOW; | |
| void setup() { | |
| // put your setup code here, to run once: | |
| pinMode(15, INPUT_PULLUP); | |
| pinMode(18, OUTPUT); | |
| pinMode(19, OUTPUT); |
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
| PImage img; | |
| PGraphics canvas; | |
| void setup(){ | |
| size(500, 500); | |
| img = loadImage("Nurie Test.png"); | |
| img.resize(width, height); | |
| canvas = createGraphics(width, height); | |
| colorMode(RGB, 255, 255, 255, 1); | |
| //image(img, 0, 0, width, height); |
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
| int res = 100; | |
| int gen = 20;//to store generation | |
| float baseR = 2; | |
| float[][] prevRs = new float[gen][res]; | |
| void setup(){ | |
| //fullScreen(); | |
| size(500, 500); | |
| colorMode(HSB, 360, 100, 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 gSize=10;//grid size | |
| void setup(){ | |
| size(500, 500); | |
| background(255); | |
| fill(0); | |
| noStroke(); | |
| int x1 = 10; | |
| int y1 = 10; | |
| int x2 = 20; |
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 zoff = 0; | |
| void setup(){ | |
| //fullScreen(); | |
| //size(1000, 1000); | |
| size(500, 500); | |
| blendMode(ADD); | |
| } | |
| 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
| //Inspired by this video https://www.youtube.com/watch?v=H3UqKe_Bwoc | |
| import ddf.minim.*; | |
| import ddf.minim.analysis.*; | |
| float timeGoAround = 100; | |
| Minim minim; | |
| AudioInput in; | |
| FFT fft; | |
| AudioPlayer player; |