CircleGriddish3
//SEE://GOTO:https://github.com/ericfickes/FIXLIBimportfixlib.*;Fixlibfix=Fixlib.init(this);////gosmallerBooleanisFinal=true;intalf=45;floatshapeSize=10000;floatminShapeSize=666;floatfinalShapeSize=69;intcX;intcY;//#524a52,#645c64,#6e656e,#988d98,#938b93,#918a91,#938793,#887f88,#978e96,#5e555d,#7a7279,#7c6f7a,#6e686d,#685d66,#867c84,#92848f,#8b8289,#756872,#3e363c,#6a6268,#8b8088,#4e434b,#867b83,#756771,#645a61,#786e75,#978a93,#8b7f87,#564d53,#665d63,#7b7077,#756a71,#6d6369,#6e676b,#4f444a,#42383d,#655b60,#61545a,#a39199,#5e5559,#94888d,#706266,#73676a,#78676b,#685559,#9f858a,#908587,#a3868b,#6e5c5f,#684f53,#765c5e,#988586,#887475,#c6aeaf,#977c7d,#942475,#fefdfd,#fbf8f8,#6e5a5a,#9e8787,#766e6e,#8a8181,#867777,#847c7c,#705857,#6a5251,#7c6867,#907c7b,#bda2a0,#ae9593,#8d7775,#79605d,#dfcfcd,#f4edec,#6f6867,#b29692,#987772,#8e7470,#8e6c65,#af958f,#8a6c65,#ceb6b0,#887c79,#5a5655,#9c7970,#9f7e74,#816b64,#544641,#755c52,#8e6e5f,#605a57,#89827d,#7f766f,#a49a91,#55504b,#685f56,#78726a,#625d55,#7b7568,#78766e,#716e5f,#416e24,#365a28,#c9d950,#4c6c30,#659443,#729741,#698338,#587e3a,#385529,#5b7f3b,#89b552,#87a347,#4c7036,#5b7436,#446735,#689048,#87a24c,#56763b,#688c46,#849948,#84ab55,#70964c,#638c49,#8a9b49,#5b733a,#5f7f42,#82a756,#759750,#7e924a,#476639,#8e9e50,#425e35,#405a33,#92b362,#b3cd6f,#4b653a,#c0d472,#819b57,#4f6d40,#65854f,#c8d878,#8ca15c,#899c59,#a5be6d,#8aa965,#768c54,#84a464,#7d9a5e,#5a7549,#718753,#5a7449,#a6ca7e,#57754b,#435642,#405336,#8ca66b,#707a4d,#526542,#95a76b,#3f4a30,#a8bb78,#89ae74,#6c8c5e,#31422d,#96b176,#6f895d,#2b3b29,#87a06c,#7d9466,#8aa673,#8baf7b,#75855d,#849d70,#555f43,#8b9e71,#46543d,#5c694d,#5a6e52,#95ae81,#879f77,#748463,#7b9271,#718468,#606450,#91a082,#5c604e,#40483b,#505647,#545c4d,#2d2831,#514f5e,#797d6b,#5e5869,#656a5b,#4e4f44,#6d6e5f,#736b7e,#879582,#545360,#53515d,#707a6c,#706d7d,#504853,#888093,#a8b19d,#443d46,#585460,#786e7e,#484852,#51525c,#716775,#7c707f,#7a7281,#979787,#504f59,#625d69,#6b6471,#939c8c,#5b6359,#645c68,#625e6a,#7b7280,#474149,#46424a,#59525c,#842f8e,#655c67,#938797,#706773,#615963,#85808e,#6b6671,#706772,#787480,#636960,#616a65,#746f7a,#a396a5,#625b64,#817e8a,#6d7067,#8c818d,#7a7781,#beb6c5,#827c86,#5d575e,#96909b,#8d848e,#676168,#86838c,#99959f,#6a656b,#d7d4de,#7c7b80,#4e4d4fcolor[]palette={#000000,#B00B13,#1975EF};intx=0;inty=0;intct=0;floatmaxCt=0;voidsettings(){size(displayWidth,displayHeight);smooth(8);//smooth()canonlybeusedinsettings();pixelDensity(displayDensity());}//////////////////////////////////////////////////////voidsetup(){frameRate(303);background(alf);fix.alpha(alf);noFill();strokeWeight(.5);smooth();//DEBUG//drawSuns();//exit();}//////////////////////////////////////////////////////voiddraw(){//re-initloopvarsx=y=ct=(int)-alf;maxCt=fix.getMax(shapeSize);//GRIDLOOPwhile(ct<maxCt){smooth();if(shapeSize>=minShapeSize){strokeWeight(random(shapeSize*.85));stroke(random(alf),alf);//stroke(0,alf);ellipse(x+alf,y,shapeSize,shapeSize);}else{strokeWeight(random(3.33));fix.ranPalStroke(palette);//circle(x,y,shapeSize,shapeSize);fix.hexagon(x,y,shapeSize);fix.ranPalStroke(palette);rect(x,y,shapeSize,shapeSize);ellipse(x,y,shapeSize,shapeSize);}if(x>=width){x=(int)-alf;y+=shapeSize;}else{x+=shapeSize;}ct++;}//shrinktheshapeshapeSize=shapeSize*.9;if(shapeSize<=finalShapeSize){drawSuns();doExit();}}/////////////////////////////////////drawacenterlinecore////drawthewireyoutershinevoiddrawSuns(){floatradius1,radius2,radius3,radius4;floatxx1,yy1,xx2,yy2,xx3,yy3,xx4,yy4;floatangle1,angle2,angle3,angle4;floatstartX1,startY1,startX2,startY2,startX3,startY3,startX4,startY4;//initradius1=75;radius2=250;radius3=275;radius4=300;startX1=startX2=startX3=startX4=(width/2);startY1=startY2=startY3=startY4=(height/2);angle1=angle2=0;angle3=103;angle4=110;//drawcircleswhile(angle1<1080){xx1=startX1-int(cos(radians(angle1))radius1);yy1=startY1-int(sin(radians(angle1))*radius1);xx2=startX2-int(cos(radians(angle2))*radius2);yy2=startY2-int(sin(radians(angle2))*radius2);xx3=startX3-int(cos(radians(angle3))*radius3);yy3=startY3-int(sin(radians(angle3))*radius3);xx4=startX4-int(cos(radians(angle4))*radius4);yy4=startY4-int(sin(radians(angle4))*radius4);//innerstroke(#ACE511,alf*2);//#EFEFEF#ACE511//fix.ranPalStroke(palette);strokeWeight(random(6.9));line(xx1,yy1,xx2,yy2);//outerstroke(random(111),pow(alf,1.75));//#ACE511strokeWeight(random(10));line(xx3,yy3,xx4,yy4);angle1+=6;angle2+=6;angle3+=4;angle4+=6;}}///////////////////////////////////////////////////////////////Endhandler,savespngto../OUTPUTvoiddoExit(){artDaily("ERICFICKES.COM");//iffinal,saveoutputtopngif(isFinal){StringsaveName=fix.pdeName()+"-"+fix.getTimestamp();save(saveName+".tif");save(saveName+".png");}noLoop();exit();}///////////////////////////////////////////////////////////////SpitoutARTDAILYmessagevoidartDaily(StringdailyMsg){textFont(createFont("Silom",18));smooth();//stroke(#EFEFEF);//fill(#EE0000);//fill(#00EE00);fill(#EFEFEF);text(""+dailyMsg,this.width.45,this.height-18);}