Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float x, y;
- PFont font;
- void setup() {
- smooth();
- frameRate(60);
- size(1000,1000);
- float col1 = random(25,225);
- float col2 = random(25,225);
- float col3 = random(25,225);
- background(245);
- float q = 500;
- float w = 500;
- translate(q,w);
- stroke(col1,col2,col3,200);
- float radius1 =10;
- beginShape();
- // curveVertex(300, 600);
- for ( float ang = -10; ang <= 370; ang += 10, radius1 = radius1+random(-4,4) ) {
- if ( ang == -10 ) { // When 'i' is less than 35...
- radius1 = 60; //...set the color to black
- }
- if ( ang == 0 ) { // When 'i' is less than 35...
- radius1 = 60; //...set the color to black
- }
- if ( ang == 360 ) { // When 'i' is less than 35...
- radius1 = 60; //...set the color to black
- }
- if ( ang == 370 ) { // When 'i' is less than 35...
- radius1 = 60; //...set the color to black
- }
- if ( ang == 220 ) { // When 'i' is less than 35...
- radius1 = radius1*1.2; //...set the color to black
- }
- if ( ang == 240 ) { // When 'i' is less than 35...
- radius1 = radius1*1.2; //...set the color to black
- }
- if ( ang == 260 ) { // When 'i' is less than 35...
- radius1 = radius1*1.2; //...set the color to black
- }
- if ( ang == 280 ) { // When 'i' is less than 35...
- radius1 = radius1/1.2; //...set the color to black
- }
- if ( ang == 300 ) { // When 'i' is less than 35...
- radius1 = radius1/1.2; //...set the color to black
- }
- if ( ang == 320 ) { // When 'i' is less than 35...
- radius1 = radius1/1.3; //...set the color to black
- }
- noFill();
- strokeWeight(1.5);
- //stroke(#f29b8c);
- /*
- fill(#f29b8c,125);
- noStroke(); */
- float rad = radians(ang);
- x = radius1 * cos(rad);
- y = radius1 * sin(rad);
- curveVertex(x,y);
- }
- endShape();
- float q2 = random(-50,50);
- float w2 = random(-50,50);
- translate(q2,w2);
- fill(col2,col3,col1);
- float radius =100;
- beginShape();
- for ( float ang = 0; ang <= 360; ang += 10, radius = radius+random(-2,2) ) {
- if ( ang == 00 ) { // When 'i' is less than 35...
- radius = 25; //...set the color to black
- }
- if ( ang == 10 ) { // When 'i' is less than 35...
- radius = 25; //...set the color to black
- }
- if ( ang == 350 ) { // When 'i' is less than 35...
- radius = 25; //...set the color to black
- }
- if ( ang == 360 ) { // When 'i' is less than 35...
- radius = 25; //...set the color to black
- }
- /*
- noFill();
- strokeWeight(1.5);
- stroke(#ed83bf);
- */
- //fill(random(25,225),random(25,225),random(25,225));
- //fill(#00f3ff);
- noStroke();
- float rad = radians(ang);
- x = radius * cos(rad);
- y = radius * sin(rad);
- curveVertex(x,y);
- }
- endShape();
- float q1 = -q2;
- float w1 = -w2;
- translate(q1,w1);
- stroke(col1+30,col2-30,col3+30);
- float radius2 =200;
- beginShape();
- // curveVertex(300, 600);
- for ( float ang = -20; ang <= 380; ang += 20, radius2 = radius2+random(-8,8) ) {
- if ( ang == -20 ) { // When 'i' is less than 35...
- radius2 = 50; //...set the color to black
- }
- if ( ang == 00 ) { // When 'i' is less than 35...
- radius2 = 50; //...set the color to black
- }
- if ( ang == 360 ) { // When 'i' is less than 35...
- radius2 = 50; //...set the color to black
- }
- if ( ang == 380 ) { // When 'i' is less than 35...
- radius2 = 50; //...set the color to black
- }
- if ( ang == 220 ) { // When 'i' is less than 35...
- radius2 = radius2*1.2; //...set the color to black
- }
- if ( ang == 240 ) { // When 'i' is less than 35...
- radius2 = radius2*1.2; //...set the color to black
- }
- if ( ang == 260 ) { // When 'i' is less than 35...
- radius2 = radius2*1.2; //...set the color to black
- }
- if ( ang == 280 ) { // When 'i' is less than 35...
- radius2 = radius2/1.2; //...set the color to black
- }
- if ( ang == 300 ) { // When 'i' is less than 35...
- radius2 = radius2/1.2; //...set the color to black
- }
- if ( ang == 320 ) { // When 'i' is less than 35...
- radius2 = radius2/1.3; //...set the color to black
- }
- noFill();
- strokeWeight(1.5);
- //stroke(#f7b566);
- // stroke(random(255),random(255),random(255));
- /*
- fill(#f7b566,100);
- noStroke();
- */
- float rad = radians(ang);
- x = radius2 * cos(rad);
- y = radius2 * sin(rad);
- curveVertex(x,y);
- }
- endShape();
- fill(0);
- font = createFont("Roboto", 22);
- textFont(font);
- textLeading(19);
- text(" Мой\n шампунь\nбар", 50, 50);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement