This file contains 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
void setup() | |
{ | |
size(600,600); | |
background(255); | |
} | |
void petal() { | |
beginShape(); | |
curveVertex(0, 0); | |
curveVertex(0, 0); | |
curveVertex(100, 32); |
This file contains 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 a; | |
void setup() | |
{ | |
size(600,600); | |
} | |
void petal() { | |
beginShape(); | |
curveVertex(0, 0); | |
curveVertex(0, 0); | |
curveVertex(100, 32); |
This file contains 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 a; | |
void setup() | |
{ | |
size(600,600); | |
} | |
void petal() { | |
beginShape(); | |
curveVertex(0, 0); | |
curveVertex(0, 0); | |
curveVertex(100, 32); |
This file contains 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 a; | |
void setup() | |
{ | |
size(600,600); | |
} | |
void petal() { | |
beginShape(); | |
curveVertex(0, 0); | |
curveVertex(0, 0); | |
curveVertex(100, 32); |
This file contains 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
program project1; | |
{$mode objfpc}{$H+} | |
uses | |
{$IFDEF UNIX}{$IFDEF UseCThreads} | |
cthreads, | |
{$ENDIF}{$ENDIF} | |
Classes, crt | |
{ you can add units after this }; |
This file contains 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
program project1; | |
{$mode objfpc}{$H+} | |
uses | |
{$IFDEF UNIX}{$IFDEF UseCThreads} | |
cthreads, | |
{$ENDIF}{$ENDIF} | |
Classes, crt | |
{ you can add units after this }; |
This file contains 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 a; | |
float b; | |
float[] x = new float[10]; | |
float[] y = new float[10]; | |
float r=50; | |
void setup() | |
{ | |
size(600,600); | |
background(255); | |
} |
This file contains 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[] x = new float[10]; | |
float[] y = new float[10]; | |
float r=50; | |
void setup() { | |
size(600,600); | |
} | |
void draw() { | |
background(255); | |
noFill(); | |
stroke(0); |
This file contains 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 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]++; |
This file contains 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
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); |
OlderNewer