Skip to content

Instantly share code, notes, and snippets.

void setup()
{
size(600,600);
background(255);
}
void petal() {
beginShape();
curveVertex(0, 0);
curveVertex(0, 0);
curveVertex(100, 32);
float a;
void setup()
{
size(600,600);
}
void petal() {
beginShape();
curveVertex(0, 0);
curveVertex(0, 0);
curveVertex(100, 32);
float a;
void setup()
{
size(600,600);
}
void petal() {
beginShape();
curveVertex(0, 0);
curveVertex(0, 0);
curveVertex(100, 32);
float a;
void setup()
{
size(600,600);
}
void petal() {
beginShape();
curveVertex(0, 0);
curveVertex(0, 0);
curveVertex(100, 32);
program project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes, crt
{ you can add units after this };
program project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes, crt
{ you can add units after this };
@kuzemkon
kuzemkon / Interactivity.pde
Last active August 29, 2015 14:07
Interactivity
float a;
float b;
float[] x = new float[10];
float[] y = new float[10];
float r=50;
void setup()
{
size(600,600);
background(255);
}
float[] x = new float[10];
float[] y = new float[10];
float r=50;
void setup() {
size(600,600);
}
void draw() {
background(255);
noFill();
stroke(0);
int keyP[]=new int[8],keyR[]=new int[8];
void keyPressed()
{
if(keyCode==SHIFT)keyP[0]++;
if(keyCode==CONTROL)keyP[1]++;
if(keyCode==ENTER)keyP[2]++;
if(keyCode=='A')keyP[3]++;
if(keyCode=='S')keyP[4]++;
if(keyCode=='D')keyP[5]++;
if(keyCode=='F')keyP[6]++;
FlowLip[] lips = new FlowLip[5];
void setup() {
size(1000,1000);
for (int i=0; i< lips.length; i++) {
float x=random(width-500);
float y=random(height-500);
float a=random(255);
float z=random(600);
float q=random(600);