Skip to content

Instantly share code, notes, and snippets.

View Nekodigi's full-sized avatar

Nekodigi

View GitHub Profile
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);
int pSize = 4;
int NI;
int NJ;
float dens = 0.33;
int[][] map;
void setup(){
fullScreen();
//size(1000, 1000);
noStroke();
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')
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)
#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);
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);
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);
}
float gSize=10;//grid size
void setup(){
size(500, 500);
background(255);
fill(0);
noStroke();
int x1 = 10;
int y1 = 10;
int x2 = 20;
float zoff = 0;
void setup(){
//fullScreen();
//size(1000, 1000);
size(500, 500);
blendMode(ADD);
}
void draw(){
//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;