0x18b75119…b783sent to0x381233d5…7acd·#19,667,710·view on Etherscan
[1 ,()=>{console.log("Artist 59. p1xelfool -- platform 1 ");const testNewCamera=!0,defaultEyeDistance=800;p5.Camera.prototype._computeCameraDefaultSettings=function(){this.defaultAspectRatio=this._renderer.width/this._renderer.height,this.defaultEyeX=0,this.defaultEyeY=0,this.defaultCameraFOV=2*Math.atan(this._renderer.height/2/this.defaultEyeZ),this.defaultEyeZ=800,this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ};let pg,t,arraySizes,maxSize,numObjkts,objkts,colors=[0,80,120,240,280],finalColor,palettePicker,palette=[["#CCFD7A","#e2e6ec","#EB79F1"],["#e2e6ec","#00d8ff","#ee4320"],["#ee4320","#fff","#1dec57"],["#fff","#ff5a00","#f600ff"],["#cbff00","#fff","#b084f7"],["#0000ff","#5dffa0","#e2e6ec"],["#0000ff","#00ff00","#e2e6ec"],["#d7fe52","#e2e6ec","#00d8ff"],],speedArray=[2,4,8,14],speedPicker,finalSpeed,sizes=[[20,100]],sizePicker,isRainbow=!1;function windowResized(){resizeCanvas(windowWidth,windowHeight),start()}function start(){let e=width/height;(pg=innerWidth>innerHeight?createGraphics(int(1920/7),int(1920/e/7),WEBGL):createGraphics(int(1920*e/8),int(240),WEBGL)).noSmooth(),pg.pixelDensity(1),pg.strokeWeight(.99)}setup=function(){createCanvas(innerWidth,innerHeight),noSmooth(),frameRate(30),noiseSeed(1),isRainbow=.1>R.random_dec(),start(),numObjkts=R.random_num(3,8),maxSize=R.random_num(15,25),arraySizes=[];for(let e=0;e<numObjkts;e++)arraySizes[e]=R.random_num(10,maxSize);palettePicker=floor(map(R.random_dec(),0,1,0,palette.length)),sizePicker=floor(map(R.random_dec(),0,1,0,sizes.length)),objkts=[];for(let i=0;i<numObjkts;i++)objkts.push(new objkt(i,arraySizes[i],-(10*arraySizes[i]),0,1)),objkts.push(new objkt(i,arraySizes[i],0,0,2)),objkts.push(new objkt(i,arraySizes[i],10*arraySizes[i],0,3)),objkts.push(new objkt(i,arraySizes[i],0,-(10*arraySizes[i]),1)),objkts.push(new objkt(i,arraySizes[i],0,10*arraySizes[i],3));finalSpeed=speedArray[speedPicker=floor(map(R.random_dec(),0,1,0,speedArray.length))],console.log("++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>>.+++++.--.++.+++++++++++.-------------------.+++++++++++.<<++.>>-------.+++++++++.++++++.-----------.+++++++++++.-----------.----.++++++++++++++.<<.>>--------------.----.+++++++++++++++++++.<<.>>------.+.<<.>>++++.++.--------------.------.+++++++++++++++++.")},draw=function(){background(0),t++,pg.clear(),pg.background(0),pg.colorMode(HSB,360,100,100),pg.noStroke(),pg.orbitControl(),pg.push(),pg.translate(0,-maxSize*numObjkts/2+maxSize/2,0),pg.rotateX(radians(-20)),pg.rotateY(radians(.4*frameCount));for(let e=0;e<objkts.length;e++)objkts[e].run();pg.pop(),image(pg,0,0,int(innerWidth),int(innerHeight))};let objkt=function(e,i,s,r,a){this.lifespan=1e3,this.totalLife=this.lifespan,this.sizeY=i,this.index=e,this.color=floor(R.random_num(0,360)),this.sizeX=R.random_num(sizes[sizePicker][0],sizes[sizePicker][1]),this.x=s,this.z=r,this.pick=floor(R.random_num(1,5.99)),this.torusRadius=R.random_num(2,6),this.groupIndex=a,this.loc=createVector(this.x,this.index*maxSize,this.z),this.vel=createVector(),this.acc=createVector(),this.direction,.5>R.random_dec()?this.direction=-10:this.direction=10,this.lifePicker=floor(R.random_num(200,500)),this.colorPicker=floor(map(R.random_dec(),0,1,0,palette[palettePicker].length))};objkt.prototype.run=function(){this.lifespan-=1,this.vel.add(this.acc),this.loc.add(this.vel),this.vel.mult(.97),this.vel.limit(3),this.acc.mult(0),this.force=createVector(0,this.direction,0),this.origin=createVector(0,this.index*maxSize,0),this.finalForce=p5.Vector.sub(this.force,this.location),frameCount%this.lifePicker==0&&(.5>R.random_dec()?this.finalForce=p5.Vector.sub(this.force,this.origin):this.finalForce=p5.Vector.sub(this.origin,this.force),this.finalForce.normalize(),this.applyForce(this.finalForce)),this.rainbow=map(sin(radians(10*this.index+10*this.groupIndex+2*frameCount)),-1,1,0,360);let e=map(sin(radians(frameCount*finalSpeed+130*this.index+50*this.groupIndex)),-1,1,0,255);if(!1==isRainbow?pg.fill(hue(palette[palettePicker][this.colorPicker]),saturation(palette[palettePicker][this.colorPicker]),e):pg.fill(this.rainbow,255,e),pg.push(),pg.translate(this.loc.x,this.loc.y,this.loc.z),pg.rotateY(radians(frameCount)),1==this.pick)pg.box(this.sizeX,this.sizeY,this.sizeX);else if(2==this.pick)pg.sphere(this.sizeY,8,3);else if(3==this.pick)pg.rotateX(radians(180)),pg.cone(this.sizeY,this.sizeY,6);else if(4==this.pick)pg.rotateX(radians(90)),pg.torus(this.sizeX/2,this.sizeY/3,10);else for(let i=0;i<360;i+=20){let s=sin(radians(i))*this.sizeX/2,r=cos(radians(i))*this.sizeX/2;pg.noFill(),pg.stroke(hue(palette[palettePicker][this.colorPicker]),saturation(palette[palettePicker][this.colorPicker]),e),pg.strokeWeight(1),pg.point(s,0,r),pg.noStroke()}pg.pop()},objkt.prototype.applyForce=function(e){this.acc.add(e)};
}],[1 ,()=>{console.log("Artist 27. Emily Edelman -- platform 1 ");p5.prototype.random = function (min, max) {
const rand = R.random_dec();
if (typeof min === "undefined") {
return rand;
} else if (typeof max === "undefined") {
if (min instanceof Array) {
return min[Math.floor(rand * min.length)];
} else {
return rand * min;
}
} else {
if (min > max) {
var tmp = min;
min = max;
max = tmp;
}
return rand * (max - min) + min;
}
};
let savesremaining=0;
setup = function () {
console.log("setup")
pixelDensity(16.0);
createCanvas(540, 960);
}
draw = function () {
console.log("draw")
background(200);
noStroke();
Colors ();
difboxColorsA = [0,1,1,1];
difboxColors = random(difboxColorsA);
if (difboxColors == 1){
boxStrokeYNA = [0];
boxStrokeYN = random(boxStrokeYNA);
//0 IS YES STROKE
boxfillCA = [color1,color2,color2,color2,color2];
boxfillC = random(boxfillCA);
if (boxfillC == color1){
textfillC = color2;
boxstrokeC = color2;
}
if (boxfillC == color2){
textfillC = color1;
boxstrokeC = color1;
}
}
bkgdCA = [color1,color2];
bkgdC = random(bkgdCA);
fill(bkgdC);
rect(0,0,width,height);
if (bkgdC == color1){
posC = color2;
}
if (bkgdC == color2){
posC = color1;
}
stroke(posC);
push();
Borders ();
Grids();
strokeWeight(1);
noFill();
rect(0,0,width,height);
pop();
SmallText()
download ();
}
function Grids(x,y,w,h){
push();
SizingConstraints();
t = SizingConstraints ();
marginA = [0, .025, .05, .1, .1, .1, .1];
margin = random (marginA);
if (random(0,100)<4){ //10
widthheredetermineA = 0;
widthhere = random(widthA);
}
else{
widthheredetermineA = 1;
}
for (x=0; x<width; x+=widthhere){
if (widthheredetermineA == 1){
widthhere = random(widthA);
}
if (widthhere>(width-x)){
widthhere = width-x;
}
w=widthToScale(margin);
for (y=0; y<height; y+=heighthere){
heighthere = random(heightA);
if (heighthere>=(height-y)){
heighthere = height-y;
}
h = heightToScale (margin);
if (difboxColors == 0){
boxStrokeYNA = [0];
boxStrokeYN = random(boxStrokeYNA);
//0 IS YES STROKE
//IF BOXES ARE DIFFERENT COLORS
boxfillCA = [color1,color2,color2,color2,color2,color2,color2,color2];
boxfillC = random(boxfillCA);
if (boxfillC == color1){
textfillC = color2;
boxstrokeC = color2;
}
if (boxfillC == color2){
textfillC = color1;
boxstrokeC = color1;
}
}
if(boxStrokeYN==0){ //YES STROKE
stroke(boxstrokeC);
strokeWeight(.75);
}
fill(boxfillC);
rect(x,y,w*125+(margin)*125, h*150+(margin)*150);
RestOfIt ();
}
}
function RestOfIt (){
push();
margintoTranslate (margin);
function Mm(){
LetterM (x, y, w, h);
}
function Oo(){
LetterO (x,y,w,h);
}
function Ee(){
LetterE (x, y, w, h);
}
function Nn(){
LetterN (x,y,w,h);
}
function Tt(){
LetterT (x, y, w, h);
}
letterpickA = [Mm, Oo, Ee, Nn, Tt];
random(letterpickA)();
pop();
}
pop();
}
function heightToScale(margin){
return heighthere/150 - margin;
}
function widthToScale(margin){
return widthhere/ 125 - margin;
}
function SizingConstraints (){
function A(){
widthA = [270];
heightA =[320];
}
function B(){
widthA = [135];
heightA =[320];
}
function C(){
widthA = [135, 135, 202.5, 67.5];
heightA =[320];
}
function D(){
widthA = [135];
heightA =[160];
}
function D2(){
widthA = [135,45,90];
heightA =[160];
}
function E(){
widthA = [27];
heightA =[32];
}
function E2(){
widthA = [36,18];
heightA =[32];
}
function F(){
widthA = [54];
heightA =[64];
}
function F2(){
widthA = [30,60];
heightA =[64];
}
function G(){
widthA = [81];
heightA =[96];
}
function G2(){
widthA = [55,110];
heightA =[96];
}
function H(){
widthA = [108];
heightA =[120];
}
function H2(){
widthA = [67.5,135];
heightA =[120];
}
function I(){
widthA = [270];
heightA =[240];
}
function J(){
widthA = [270];
heightA =[160];
}
function K(){
widthA = [270];
heightA =[120];
}
pickLetterA = [A,A,A,A,A,A,A,A,B,B,B,C,C,D,D2,E,E,E2,E2,E2,E2,F,F2,G,G2,H,H,H2,I,I,I,I,J,J,J,J,K,K,K,K];
random(pickLetterA) ();
}
function margintoTranslate (margin){
if (margin == 0){
return translate (0,0);
}
if (margin == .1){
return translate (6,8);
}
if (margin == .01){
return translate (.5,.8);
}
if (margin == .025){
return translate (1.4,1.6);
}
if (margin == .05){
return translate (3,3.7);
}
}
function Borders (){
if (random(0,100)<84){
if (random(0,100)<50){
scaleAmtx = .9
scaleAmty = random(.75,.87);
scale(scaleAmtx, scaleAmty);
transAmtx = 30;
transAmty = 50;
translate(transAmtx,transAmty)
}
else{
if (random(0,50)<25){
scaleAmtx = .9
scaleAmty = random(.5,.7);
scale(scaleAmtx,scaleAmty);
transAmtx = 30;
transAmty = 30;
translate(transAmtx, transAmty);
}
else{
if (random(0,25)<12){
scaleAmtx = random(.5,.65)
scaleAmty = .87;
scale (scaleAmtx, scaleAmty);
transAmtx = random(30,242);
transAmty = 50;
translate(transAmtx,transAmty);
}
else{
scaleAmty = .87;
scaleAmtx = random(.65,.8)
scale(scaleAmtx, scaleAmty);
transAmtx = random(30,100);
transAmty = 50;
translate(transAmtx, transAmty);
}
}
}
}
else{
scaleAmtx = 1;
scaleAmty = 1;
transAmtx = 26;
transAmty = -70;
}
}
function Colors (){
if (random(0,100)<15){ //LIGHT ORANGE, DARKER ORANGE
color1 = [227,47,14];
color2 = [250,73,40];
textcolor = 255;
}
else{
if (random(0,85)<22){ //DARK ORANGE, HOT RED
color1 = [227,47,14];
color2 = [239,65,73];
textcolor = 255;
}
else{
if (random(0,64)<6){ //LIGHT YELLOW, BRIGHT YELLOW
color1 = [248,232,128];
color2 = [255,208,0];
textcolor = [35,35,35];
}
else{
if (random(0,58)<12){ //BRIGHT RED, HOT RED
color1 = [200,49,42];
color2 = [239,65,73];
textcolor = 255;
}
else{
if (random(0,46)<25){ //TRANS RED, HOT RED
color1 = [236, 34, 39];
color2 = [239,65,73];
textcolor = 255;
}
else{
if (random(0,19)<7){ //GOLD, YELLOW
color1 = [255,169,0];
color2 = [255,190,28];
textcolor = 255;
}
else{
color1 = [49,102,255]; //BLUE, GREEN
color2 = [7,146,66];
textcolor = 255;
}
}
}
}
}
}
}
function SmallText(){
noStroke();
fill(textcolor);
select('canvas').elt.style.letterSpacing = "2px";
textStyle(ITALIC);
textFont('Courier New');
OppsA = ['MEMENTO / OMEN', 'EON / MOMENT', 'NONE / ONE', 'MEME / TOME', 'NOON / MOON'];
Opps = random(OppsA);
mainyplacement = [70*scaleAmty+transAmtx*scaleAmty, 28]
mainxplacement = [0*scaleAmtx+transAmtx*scaleAmtx, 23]
if (random(0,100)<30){
maintextA = RIGHT
textAl = LEFT;
textX = 514;
textAlX = 0*scaleAmtx+transAmtx*scaleAmtx;
textW = random(20,350);
}
else{
if (random(0,100)<30){
maintextA = LEFT;
textAl = RIGHT;
textX = 0*scaleAmtx+transAmtx*scaleAmtx;
textW = random(40,350);
textAlX = 514-textW;
}
else{
maintextA = CENTER;
textX = 270;
if (random(0,100)<50){
textAl = LEFT;
textAlX = random(mainxplacement);
textW = random(40,200);
}
else{
textAl = RIGHT;
textW = random(40,280);
textAlX = 514-textW;
}
}
}
if (random(0,100)<69){
textSize(random(17,25));
text(Opps, random(mainxplacement),random(mainyplacement));
}
else{
if (random(0,31)<10){
textAlign(CENTER);
text(Opps, 270,random(mainyplacement));
}
else{
textAlign(RIGHT);
text(Opps, 514,random(mainyplacement));
}
}
textAlign(maintextA);
textSize(random(15,40));
text('MOMENT', textX, 1010*scaleAmty+transAmty*scaleAmty);
if (random(0,100)<55){
OppsSmallA = ['Emote memento 2024', 'Memento moment-o 2024', 'Moment note 2024', 'Momento tome 2024', 'Moment to emote 2024', 'Moon moment 2024', 'Moment to meet 2024', 'One moment 2024'];
OppsSmall = random(OppsSmallA);
textAlign(textAl);
textSize(10);
text(OppsSmall, textAlX, random(220,912), textW);
}
else{
OppsSmallA = ['Tote moot memento tome to one totem moment. \n \n 2024', 'Moment to eon. Eon to moment. \n \n 2024', 'MEMENTO / OMEN, EON / MOMENT, NONE / ONE, MEME / TOME, NOON/MOON \n \n 2024', 'Memento tome to one totem moment \n \n 2024', 'Tome to one totem moment \n \n 2024'];
OppsSmall = random(OppsSmallA);
textAlign(textAl);
textSize(10);
text(OppsSmall, textAlX, random(220,767), textW);
}
}
function LetterM(Tx, Ty, Sx, Sy){
translate (Tx, Ty);
size=150;
for (x=0; x<=size; x+=100){
noStroke();
fill(textfillC);
beginShape();
vertex(0*Sx,0*Sy);
vertex(35*Sx,0*Sy);
vertex(62.5*Sx,35*Sy);
vertex(90*Sx,0*Sy);
vertex(125*Sx,0*Sy);
vertex(125*Sx,150*Sy);
vertex(90*Sx,150*Sy);
vertex(90*Sx,55*Sy);
vertex(62.5*Sx,88*Sy);
vertex(35*Sx,55*Sy);
vertex(35*Sx,150*Sy);
vertex(0*Sx,150*Sy);
vertex(0*Sx,0*Sy);
endShape(CLOSE);
}
}
function LetterO(Tx, Ty, Sx, Sy){
translate (Tx, Ty);
size=150;
for (x=0; x<=size; x+=100){
noStroke();
fill(textfillC);
beginShape();
vertex(50*Sx,0*Sy);
vertex(75*Sx,0*Sy);
bezierVertex(75*Sx,0*Sy,125*Sx,0*Sy,125*Sx,50*Sy);
vertex(125*Sx,50*Sy);
vertex(125*Sx,100*Sy);
bezierVertex(125*Sx,100*Sy,125*Sx,150*Sy,75*Sx,150*Sy);
vertex(50*Sx,150*Sy);
bezierVertex(50*Sx,150*Sy,0*Sx,150*Sy,0*Sx,100*Sy);
vertex(0*Sx,50*Sy);
bezierVertex(0*Sx,50*Sy,0*Sx,0*Sy,50*Sx,0*Sy);
beginContour();
vertex(70*Sx,35*Sy);
vertex(55*Sx,35*Sy);
bezierVertex(55*Sx,35*Sy,35*Sx,35*Sy,35*Sx,55*Sy);
vertex(35*Sx,90*Sy);
bezierVertex(35*Sx,90*Sy,35*Sx,115*Sy,55*Sx,115*Sy);
vertex(70*Sx,115*Sy);
bezierVertex(70*Sx,115*Sy,90*Sx,115*Sy,90*Sx,90*Sy);
vertex(90*Sx,55*Sy);
bezierVertex(90*Sx,55*Sy,90*Sx,35*Sy,70*Sx,35*Sy)
endContour();
endShape(CLOSE);
}
}
function LetterE(Tx, Ty, Sx, Sy){
translate (Tx, Ty);
size=150;
for (x=0; x<=size; x+=100){
noStroke();
fill(textfillC);
beginShape();
vertex(0*Sx,0*Sy);
vertex(125*Sx,0*Sy);
vertex(125*Sx,35*Sy);
vertex(35*Sx,35*Sy);
vertex(35*Sx,55*Sy);
vertex(80*Sx,55*Sy);
vertex(80*Sx,90*Sy);
vertex(35*Sx,90*Sy);
vertex(35*Sx,115*Sy);
vertex(125*Sx,115*Sy);
vertex(125*Sx,150*Sy);
vertex(0*Sx,150*Sy);
vertex(0*Sx,0*Sy);
endShape(CLOSE);
}
}
function LetterN(Tx, Ty, Sx, Sy){
translate (Tx, Ty);
size=150;
for (x=0; x<=size; x+=100){
noStroke();
fill(textfillC);
beginShape();
vertex(0*Sx,0*Sy);
vertex(35*Sx,0*Sy);
vertex(90*Sx,87*Sy);
vertex(90*Sx,0)*Sy;
vertex(125*Sx,0*Sy);
vertex(125*Sx,150*Sy);
vertex(90*Sx,150*Sy);
vertex(35*Sx,69*Sy);
vertex(35*Sx,150*Sy);
vertex(0*Sx,150*Sy);
vertex(0*Sx,0*Sy);
endShape(CLOSE);
}
}
function LetterT(Tx, Ty, Sx, Sy){
translate (Tx, Ty);
size=150;
for (x=0; x<=size; x+=100){
noStroke();
fill(textfillC);
beginShape();
vertex(0*Sx,0*Sy);
vertex(125*Sx,0*Sy);
vertex(125*Sx,35*Sy);
vertex(80*Sx,35*Sy);
vertex(80*Sx,150*Sy);
vertex(45*Sx,150*Sy);
vertex(45*Sx,35*Sy);
vertex(0*Sx,35*Sy);
vertex(0*Sx,0*Sy);
endShape(CLOSE);
}
}
const styleElement = document.createElement('style');
const styleStr = `
html {
margin: 0;
padding: 0;
}
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
}
canvas {
display: block;
height: 100vh !important;
width: 56.25vh !important;
}
`;
styleElement.textContent = styleStr;
document.head.appendChild(styleElement);
function download (){
if (savesremaining) {
saveCanvas();
savesremaining--;
}
else{
noLoop();
}
}
function keyTyped() {
if (key === 'd') {
saveCanvas();
}
}
}],