“Color Cuisine 06D3” by Jeff Bennett
https://openprocessing.org/sketch/182563
License CreativeCommons Attribution ShareAlike
https://creativecommons.org/licenses/by-sa/3.0
{{filePath}}
{{width}} x {{height}}
Report Sketch
Oh, that naughty sketch! Please let us know what the issue is below.
Apply Template
Applying this template will reset your sketch and remove all your changes. Are you sure you would like to continue?
Report Sketch
Report Comment
Please confirm that you would like to report the comment below.
We will review your submission and take any actions necessary per our Community Guidelines. In addition to reporting this comment, you can also block the user to prevent any future interactions.
Please report comments only when necessary. Unnecessary or abusive use of this tool may result in your own account being suspended.
Are you sure you want to delete your sketch?
Any files uploaded will be deleted as well.
Delete Comment?
This will also delete all the replies to this comment.
Delete this tab? Any code in it will be deleted as well.
Select a collection to submit your sketch
We Need Your Support
Since 2008, OpenProcessing has provided tools for creative coders to learn, create, and share over a million open source projects in a friendly environment.
Niche websites like ours need your continued support for future development and maintenance, while keeping it an ad-free platform that respects your data and privacy!
Please consider subscribing below to show your support with a "Plus" badge on your profile and get access to many other features!
CC Attribution ShareAlike
Color Cuisine 06D3
Bennett
xxxxxxxxxx
void setup() {
size(695, 500);
background(0);
int polyCount = 220;
//int sideCount = 0;
float radius = 0.0;
float rotation = 0.0;
noStroke();
//frameRate(15);
//void draw(){
for (int i=0; i<polyCount; i++) {
int fillColor = 1;
fillColor = floor(random(0,3.999));
float drawShape;
//drawShape = 1;
drawShape = int(random(2,100)) % 3;
//println(drawShape);
//DRAW ARC
if (drawShape == 0){
float arcSize = random(width, width*2);
strokeWeight(random(1,300));
noFill();
// Set the fill color
if (fillColor == 1){
stroke( 3, 99, 124, random(15,35));//Blue-Green
}
else if (fillColor == 2){
stroke( 252, 186, 56, random(5,15));//252, 186,56
}
else if (fillColor == 3){
stroke( 213, 91, 57, random(15,25));//Copper
}
else {
//stroke( 233, 91, 57, random(15,25));//
//stroke( 3, 99, 124, random(15,35));//Blue-Green
stroke( 0, 0, 0, random(15,45));
}
//arc(x, y, width, height, start, stop)
arc(random(-500, width+50), random(-500, height+50), arcSize, arcSize, random(PI, PI+QUARTER_PI), PI*random(2.6, 3));
}
//DRAW RECTANGLE
drawShape = int(random(1,100)) % 2;
//println(drawShape);
if (drawShape == 0){
fill(random(0,255), random(0,255), random(0,255), random(40,100));
noStroke();
fillColor = floor(random(0,3.999));
// Set the fill color
if (fillColor == 1){
//fill( 3, 124, 124, random(15,45));//Blue-Green
fill( 3, 99, 124, random(10,20));//Blue-Green
}
else if (fillColor == 2){
fill( 252, 186, 56, random(15,25));//
}
else if (fillColor == 3){
fill( 213, 91, 57, random(15,25));//Copper
}
else {
//fill( 255, 255, 255, random(15,45));//White
//fill( 121, 121, 121, random(15,45));//Gray
fill( 0, 0, 0, random(15,45));
//fill( 3, 99, 124, random(15,25));//Blue-Green
}
rect(random(0, width-50), random(0, height-50), random(50, 150), random(50,150));
}
}
}//END SETUP
//}//end draw
//void mousePressed() {
//noLoop();
//}
//void mouseReleased() {
// loop(); // Releasing the mouse stops looping draw()
//}
void polygon (int sideCount, float radius)
{
float theta = 0.0;
float x = 0.0;
float y = 0.0;
int fillColor = 1;
beginShape ();
for (int i=0; i<sideCount; i++) {
fillColor = floor(random(0,3.999));
x = cos(theta)*radius;
y = sin(theta)*radius;
vertex(x,y);
theta += TWO_PI/sideCount;
// Set the fill color
if (fillColor == 1){
fill( 0, 255, 255, random(15,45));//Cyan
}
else if (fillColor == 2){
fill( 255, 0, 255, random(15,45));//Magenta
}
else if (fillColor == 3){
fill( 255, 255, 0, random(15,55));//Yellow
}
else {
fill( 255, 255, 255, random(15,45));//White
}
//fill(random(0,255), random(0,255), random(0,255), random(5,100));
}
endShape(CLOSE);
} //end polygon
See More Shortcuts