import ddf.minim.*;int vermelho=255;Minim minim;AudioSample click;PImage[] fundos =  new PImage[4];int numero=0;void setup() {  size(400,400);  minim = new Minim(this);  click = minim.loadSample (“click.mp3”);  for (int i=0;i<4;i++){    fundos[i]=loadImage(“fundo”+ str(i)+”.png”);  }}void draw() {  if (mousePressed){      image(fundos[numero],60,20);       numero=numero+1;  }  if (numero>2) numero=0;  if (mousePressed){    image(loadImage(“watch.png”),4*mouseX-600,4*mouseY-1300);    click.trigger();  }  else {    image(loadImage(“hand.png”),4*mouseX-600,4*mouseY-1300);  }  image(loadImage(“foreground.png”),0,0);}void mousePressed() {  if (vermelho==255) {    vermelho=0;    numero=numero+1;  }  else {    vermelho=255;  }}

import ddf.minim.*;
int vermelho=255;
Minim minim;
AudioSample click;
PImage[] fundos =  new PImage[4];
int numero=0;

void setup() {
  size(400,400);
  minim = new Minim(this);
  click = minim.loadSample (“click.mp3”);
  for (int i=0;i<4;i++){
    fundos[i]=loadImage(“fundo”+ str(i)+”.png”);
  }
}

void draw() {
  if (mousePressed){
      image(fundos[numero],60,20);
      numero=numero+1;
  }
  if (numero>2) numero=0;
  if (mousePressed){
    image(loadImage(“watch.png”),4*mouseX-600,4*mouseY-1300);
    click.trigger();
  }
  else {
    image(loadImage(“hand.png”),4*mouseX-600,4*mouseY-1300);
  }
  image(loadImage(“foreground.png”),0,0);
}

void mousePressed() {
  if (vermelho==255) {
    vermelho=0;
    numero=numero+1;
  }
  else {
    vermelho=255;
  }
}

import ddf.minim.*;int vermelho=255;Minim minim;AudioSample click;void setup() {  size(400,400);  minim = new Minim(this);  click = minim.loadSample (&#8220;click.mp3&#8221;);}void draw() {  background(vermelho,0,255);  if (mousePressed){    image(loadImage(&#8220;watch.png&#8221;),4*mouseX-600,4*mouseY-1300);    click.trigger();  }  else {    image(loadImage(&#8220;hand.png&#8221;),4*mouseX-600,4*mouseY-1300);  }  image(loadImage(&#8220;foreground.png&#8221;),0,0);}void mousePressed() {  if (vermelho==255) {    vermelho=0;  }  else {    vermelho=255;  }}

import ddf.minim.*;
int vermelho=255;
Minim minim;
AudioSample click;

void setup() {
  size(400,400);
  minim = new Minim(this);
  click = minim.loadSample (“click.mp3”);
}

void draw() {
  background(vermelho,0,255);
  if (mousePressed){
    image(loadImage(“watch.png”),4*mouseX-600,4*mouseY-1300);
    click.trigger();
  }
  else {
    image(loadImage(“hand.png”),4*mouseX-600,4*mouseY-1300);
  }
  image(loadImage(“foreground.png”),0,0);
}

void mousePressed() {
  if (vermelho==255) {
    vermelho=0;
  }
  else {
    vermelho=255;
  }
}

int vermelho=255;void setup() {  size(400,400);}void draw() {  background(vermelho,0,255);  image(loadImage(&#8220;hand.png&#8221;),mouseX,mouseY);}void mousePressed() {  if (vermelho==255) {    vermelho=0;  }  else {    vermelho=255;  }}

int vermelho=255;

void setup() {
  size(400,400);
}

void draw() {
  background(vermelho,0,255);
  image(loadImage(“hand.png”),mouseX,mouseY);
}

void mousePressed() {
  if (vermelho==255) {
    vermelho=0;
  }
  else {
    vermelho=255;
  }
}

int arrastar=10;int keyx=0;int keyy=0;PImage[] xxseq =  new PImage[3];PImage[] xseq =  new PImage[3];PImage[] yyseq =  new PImage[3];PImage[] yseq =  new PImage[3];int contxx = 0;int contx = 0;int contyy = 0;int conty = 0;void setup() {  for (int i=0;i&lt;3;i++){    xxseq[i]=loadImage(&#8220;xx&#8221;+ str(i)+&#8221;.png&#8221;);  }    for (int i=0;i&lt;3;i++){    xseq[i]=loadImage(&#8220;x&#8221;+ str(i)+&#8221;.png&#8221;);  }  for (int i=0;i&lt;3;i++){    yyseq[i]=loadImage(&#8220;yy&#8221;+ str(i)+&#8221;.png&#8221;);  }    for (int i=0;i&lt;3;i++){    yseq[i]=loadImage(&#8220;y&#8221;+ str(i)+&#8221;.png&#8221;);  }   size(639,480);}void draw(){}void keyPressed(){  image(loadImage(&#8220;background.png&#8221;), 0, 0);  if (key==&#8217;d&#8217;) {    keyx=keyx+1;    image(xxseq[contxx],200+10*keyx+10,20+10*keyy);     contxx=contxx+1;  }  if (contxx&gt;2) contxx=0;    if (key==&#8217;a&#8217;){    keyx=keyx-1;    image(xseq[contx],200+10*keyx+10,20+10*keyy);     contx=contx+1;  }  if (contx&gt;2) contx=0;    if (key==&#8217;w&#8217;){    keyy=keyy-1;    image(yseq[conty],200+10*keyx,20+10*keyy-10);     conty=conty+1;  }  if (conty&gt;2) conty=0;  if (key==&#8217;s&#8217;){    keyy=keyy+1;    image(yyseq[contyy],200+10*keyx,20+10*keyy+10);     contyy=contyy+1;  }  if (contyy&gt;2) contyy=0;}

int arrastar=10;
int keyx=0;
int keyy=0;
PImage[] xxseq =  new PImage[3];
PImage[] xseq =  new PImage[3];
PImage[] yyseq =  new PImage[3];
PImage[] yseq =  new PImage[3];
int contxx = 0;
int contx = 0;
int contyy = 0;
int conty = 0;

void setup() {
  for (int i=0;i<3;i++){
    xxseq[i]=loadImage(“xx”+ str(i)+”.png”);
  }
 
  for (int i=0;i<3;i++){
    xseq[i]=loadImage(“x”+ str(i)+”.png”);
  }

  for (int i=0;i<3;i++){
    yyseq[i]=loadImage(“yy”+ str(i)+”.png”);
  }
 
  for (int i=0;i<3;i++){
    yseq[i]=loadImage(“y”+ str(i)+”.png”);
  }
 
  size(639,480);
}

void draw(){
}

void keyPressed(){
  image(loadImage(“background.png”), 0, 0);
  if (key==’d’) {
    keyx=keyx+1;
    image(xxseq[contxx],200+10*keyx+10,20+10*keyy);
    contxx=contxx+1;
  }
  if (contxx>2) contxx=0;
 
  if (key==’a’){
    keyx=keyx-1;
    image(xseq[contx],200+10*keyx+10,20+10*keyy);
    contx=contx+1;
  }
  if (contx>2) contx=0;
 
  if (key==’w’){
    keyy=keyy-1;
    image(yseq[conty],200+10*keyx,20+10*keyy-10);
    conty=conty+1;
  }
  if (conty>2) conty=0;

  if (key==’s’){
    keyy=keyy+1;
    image(yyseq[contyy],200+10*keyx,20+10*keyy+10);
    contyy=contyy+1;
  }
  if (contyy>2) contyy=0;
}

long contador;long intervalo = 1000;int arrastar = 10;void setup(){  size(400,400);  contador=millis()+intervalo;}void draw(){  if (contador&lt;millis()){    translate(arrastar,0);    contador=millis()+intervalo;    arrastar+=10;  }  ellipse(30,30,30,30);}

long contador;
long intervalo = 1000;
int arrastar = 10;

void setup(){
  size(400,400);
  contador=millis()+intervalo;
}

void draw(){
  if (contador<millis()){
    translate(arrastar,0);
    contador=millis()+intervalo;
    arrastar+=10;
  }
  ellipse(30,30,30,30);
}

translate(-100,0)
var(“x”,NUMBER,250,150,330)
var(“y”,NUMBER,500,150,400)
var(“afastamentoolhos”,NUMBER,x+5,x+5,455)
var(“alturaolhos”,NUMBER,y+5,y+5,725)
var(“corpo”,NUMBER,x+50,x+50,400)
var(“tshirt”,TEXT,)
size(1000,1000)
background(1)
nofill()
stroke(0.4,0.7,0.9)
strokewidth(30)
autoclosepath(False)
beginpath((500-x)+490,700)
curveto((500-x)+600,700,(500-x)+640,600,(500-x)+640,560)
endpath()
nostroke()
beginpath(500,0)
lineto(x,y)
lineto((500-x)+500,y)
path1=endpath(draw=False)
beginpath(x,y)
lineto((500-x)+500,y)
lineto((500-x)+500,y-(y/3))
lineto(x,y-(y/3))
path2=endpath(draw=False)
fill(0.3,0.55,0.7)
persp1=path1.intersect(path2)
drawpath(persp1)
fill(0.4,0.7,0.9)
beginpath(x,750)
lineto((500-x)+500,750)
lineto((500-x)+500,y)
lineto(x,y)
path3=endpath(draw=True)
fill(0.4,0.7,0.9)
beginpath(500,0)
lineto((500-x)+600,600)
lineto((500-x)+665,500)
path3=endpath(draw=False)
fill(0.3,0.55,0.7)
path4=rect((500-x)+665,600,-65-((500-x)/10),-130,draw=False)
persp2=path3.intersect(path4)
drawpath(persp2)
fill(0.4,0.7,0.9)
rect((500-x)+600,600,65,-100)
fill(0.3,0.55,0.7)
beginpath(500,0)
lineto((500-x)+655,445)
lineto((500-x)+615,480)
path5=endpath(draw=False)
path6=rect((500-x)+655,490,-30-((500-x)/20),-45-15,draw=False)
persp3=path5.intersect(path6)
drawpath(persp3)
fill(0.4,0.7,0.9)
rect((500-x)+655,490,-30,-45)
fill(0.3,0.55,0.7)
beginpath(500,0)
lineto(corpo+30,949)
lineto(corpo+20,899)
path7=endpath(draw=False)
beginpath(500,0)
lineto((500-corpo)+470,949)
lineto((500-corpo)+480,899)
path8=endpath(draw=False)
path9=rect(100,1000,1100,-130,draw=False)
persp4=path7.intersect(path9)
drawpath(persp4)
persp5=path8.intersect(path9)
drawpath(persp5)
fill(0.4,0.7,0.9)
rect(corpo+20,899,10,50)
rect((500-corpo)+480,899,-10,50)
beginpath(corpo,749)
lineto(corpo,900)
lineto((500-corpo)+500,900)
lineto((500-corpo)+500,749)
endpath()
fill(0.8)
rect((500-x)+500,678,30,45)
rect(corpo-3,750,((500-corpo)*2)+6,100)
nofill()
stroke(0)
strokewidth(5)
oval(afastamentoolhos,alturaolhos,20,20)
oval((500-afastamentoolhos)+480,alturaolhos,20,20)
fill(0)
stroke(0)
path10=oval(485,alturaolhos,30,20,draw=False)
path11=rect(485,alturaolhos+8,30,12,draw=False)
boca=path10.intersect(path11)
drawpath(boca)
fill(0.55)
font(“Helvetica Bold”)
align(CENTER)
text(tshirt,corpo+10,785,width=((500-corpo)*2)-20)
nostroke()
beginpath(500,0)
lineto((500-x)+594,y-14)
lineto((500-x)+706,y-106)
fill(0)
path12=endpath(draw=False)
path13=rect((500-x)+706,y-14,-112-((500-x)/10),-92-(y/20),draw=False)
persp6=path12.intersect(path13)
drawpath(persp6)
beginpath((500-x)+585,y-30)
curveto((500-x)+585,y-20,(500-x)+575,y-10,(500-x)+565,y-10)
lineto((500-x)+580,y-40)
endpath()
fill(0.15)
rect((500-x)+594,y-14,112,-92)
fill(1)
rect((500-x)+600,y-20,100,-80)
fill(0)
fontsize(28)
font(“Sue Ellen Francisco”)
text(“I’m a Fan!”,(500-x)+606,y-39)
nofill()
stroke(0.3,0.55,0.7)
beginpath((500-x)+640,533)
lineto((500-x)+600,533)
path14=endpath()
beginpath((500-x)+640,567)
lineto((500-x)+600,567)
path15=endpath()

MEME

Para este último projecto, o meu meme servirá de divulgador de memes, pensado para ser usado por todos os fãs deste tipo de discurso. Irei criar uma personagem cujos atributos serão controláveis, criando assim, ao contrário de memes como o advice dog, não uma imagem fixa, mas uma identidade familiar, uma família de personagens com uma identidade própria, mas mantendo uma relação estreita entre si. As t-shirts destas personagens poderão ser estampadas com o novo do meme que o fã de memes mais gosta, ou acabou de descobrir, e quer partilhar com a comunidade.

Irei também trabalhar a ilusão de tridimensionalidade nesta mesma personagem, tornada possível através do uso de paths compostas.

size(1000,1000)
var(“x”,NUMBER,300,200,425)
var(“y”,NUMBER,400,200,362)
var(“xx”,NUMBER,300,x-((500-x)/1.8)+10,450)
var(“yy”,NUMBER,500,y,y+((800-y)/4)+100)
var(“tshirt”,TEXT)
beginpath(x-((500-x)/1.8),700)
lineto(x-((500-x)/1.8),y+((800-y)/4))
curveto(x-((500-x)/1.8),y+((800-y)/8),x-((500-x)/1.8),y,x,y)
lineto((500-x)+500,y)
curveto((500-x)+500+((500-x)/1.8),y,(500-x)+500+((500-x)/1.8),y+((800-y)/8),(500-x)+500+((500-x)/1.8),y+((800-y)/4))
lineto((500-x)+500+((500-x)/1.8),700)
endpath()
image(“esq.png”,x-((500-x)/1.8)-18,682)
image(“dir.png”,(500-x)+500+((500-x)/1.8)-87,682)
fill(1)
oval(xx,yy,5,5)
oval((500-xx)+500,yy,5,5)
fill(1)
rect(x-((500-x)/1.8)-1,y+((800-y)/4)+110,((500-x)+500+((500-x)/1.8))-(x-((500-x)/1.8))+2,40)
rect(x-((500-x)/1.8)+11,y+((800-y)/4)+110+35,((500-x)+500+((500-x)/1.8))-(x-((500-x)/1.8))-24,50)
align(CENTER)
fill(0.5)
font(“Helvetica”)
fontsize(20)
text(tshirt,x-((500-x)/1.8)+38,y+((800-y)/4)+88+44,width=((500-x)+500+((500-x)/1.8))-(x-((500-x)/1.8))-61)

size(2500,2000)
background(1)
stroke(0)

r = random(0.01,0.99)
g = random(0.01,0.99)
b = random(0.01,0.99)

x1 = random(400,450)
y1 = 200
x2 = random(150,300)
y2 = random(100,150)
x3 = random(30,100)
y3 = random(200,300)
x4 = x2+random(20,80)
y4 = random(450,550)
x5 = random(400,450)
y5 = random(1000,1200)
x6 = x5-random(30,100)
y6 = random(1350,1400)
x7 = x5+30
y7 = 1550

x8 = x1+random(20,50)
y8 = 250+random(0,100)
x9 = x8-random(30,50)
y9 = random(550,700)
x10= x5+random(20,40)
y10= random(1000,1200)
x11= random(x7,480)
y11= 1550
x12= x2+100
y12= y3+random(0,100)

x8b= random(1600,1700)
y8b= y8
x9b= x8b-random(5,20)
y9b= y9
x10b= x8b-random(60,90)
y10b= y10
x2b= random(1250,1350)
y2b= y2
x3b= random(1100,1250)
y3b= y3
x4b=x2b+random(25,50)
y4b= y4
x5b= x4b-random(0,50)
y5b= y5
x7b= x10b-random(40,70)
y7b= y7
x7c= x7b-random(75,200)
y7c= y7
x6b= x5b-random(10,30)
y6b= y6
x5b= x4b+((y5b-y4b)*(x4b-x7c)/(y4b-y7c))
y5b= y5
x12b= x7b-random(50,80)
y12b= y12

xx1=500
yy1=random(100,350)
xx2=random(460,400)
yy2=yy1
xx3=random(230,260)
yy3=200
xx4=random(0,100)
yy4=random(210,250)
xx5=-30
yy5=random(200,280)
xx6=random(-40,20)
yy6=470
xx8=random(200,350)
yy8=1550
xx7=xx8-random(40,230)
yy7=random(1450,1550)
xx9=random(300,350)
yy9=500
xx10=random(400,480)
yy10=yy1+random(275,550)
xx11=500
yy11=yy10
xx12=xx2+random(10,30)
yy12=yy2+random(0,100)
xx13=xx12-random(0,30)
yy13=yy12+random(100,170)
yy14=random(1000,1400)
xx15=xx8+((yy14-yy8)*(xx8-xx9)/(yy8-yy9))
yy15=yy14
xx16=xx9-random(150,200)
yy16=yy9-random(50,100)
xx16b=1750
xx15b=xx16b+random(0,70)
xx7b=xx16b-random(180,220)
xx8b=xx7b
xx6b=xx7b-random(0,50)
xx3b=xx16b+random(-70,50)
xx4b=xx6b+random(-50,0)
xx5b=xx4b-random(30,80)
xx1b=xx6b+random(-150,200)
xx12b=xx1b+random(100,150)
xx13b=xx12b
xx10b=xx1b

def feisar(x,y):
    translate(125,0)
    #cor
    fill(r,g,b)
    nostroke()
    beginpath(x1,200)
    lineto(x8,y8)
    lineto(x9,y9)
    lineto(x10,y10)
    lineto(x11,y11)
    lineto((500-x11)+500,y11)
    lineto((500-x10)+500,y10)
    lineto((500-x9)+500,y9)
    lineto((500-x8)+500,y8)
    lineto((500-x1)+500,200)
    endpath()

    fill(1-r,1-g,1-b)
    nostroke()
    beginpath(x9,y9)
    lineto(x12,y12)
    lineto(x3,y3)
    lineto(x4,y4)
    endpath()

    beginpath((500-x9)+500,y9)
    lineto((500-x12)+500,y12)
    lineto((500-x3)+500,y3)
    lineto((500-x4)+500,y4)
    endpath()
    translate(300,0)
    beginpath(x9b,y9b)
    lineto(x12b,y12b)
    lineto(x3b,y3b)
    lineto(x4b,y4b)
    endpath()
    reset()

    translate(125,0)
    nofill()
    stroke(0.7)
    strokewidth(6)

    #contorno exterior esq
    line(500,200,x1,200)
    line(x1,200,x2,y2)
    line(x2,y2,x3,y3)
    line(x3,y3,x4,y4)
    line(x4,y4,x5,y5)
    line(x5,y5,x6,y6)
    line(x6,y6,x7,y7)
    line(x7,y7,500,y7)

    #contorno exterior dir
    line(500,200,(500-x1)+500,200)
    line((500-x1)+500,200,(500-x2)+500,y2)
    line((500-x2)+500,y2,(500-x3)+500,y3)
    line((500-x3)+500,y3,(500-x4)+500,y4)
    line((500-x4)+500,y4,(500-x5)+500,y5)
    line((500-x5)+500,y5,(500-x6)+500,y6)
    line((500-x6)+500,y6,(500-x7)+500,y7)
    line((500-x7)+500,y7,500,y7)

    #interior esquerdo
    nofill()
    strokewidth(6)
    line(x1,200,x8,y8)
    line(x8,y8,x9,y9)
    line(x9,y9,x10,y10)
    line(x10,y10,x11,y11)

    line(x8,y8,500,y8)
    line(x9,y9,500,y9)
    line(x10,y10,500,y10)

    line(x8,y8,x2,y2)
    line(x8,y8,x12,y12)
    line(x9,y9,x12,y12)
    line(x12,y12,x2,y2)
    line(x12,y12,x3,y3)
    line(x12,y12,x5,y5)
    line(x9,y9,x4,y4)
    line(x4,y4,x12,y12)
    line(x10,y10,x5,y5)

    line(x5,y5,x7,y7)

    #interior direito
    line((500-x1)+500,200,(500-x8)+500,y8)
    line((500-x8)+500,y8,(500-x9)+500,y9)
    line((500-x9)+500,y9,(500-x10)+500,y10)
    line((500-x10)+500,y10,(500-x11)+500,y11)

    line((500-x8)+500,y8,500,y8)
    line((500-x9)+500,y9,500,y9)
    line((500-x10)+500,y10,500,y10)

    line((500-x8)+500,y8,(500-x2)+500,y2)
    line((500-x8)+500,y8,(500-x12)+500,y12)
    line((500-x9)+500,y9,(500-x12)+500,y12)
    line((500-x12)+500,y12,(500-x2)+500,y2)
    line((500-x12)+500,y12,(500-x3)+500,y3)
    line((500-x12)+500,y12,(500-x5)+500,y5)
    line((500-x9)+500,y9,(500-x4)+500,y4)
    line((500-x4)+500,y4,(500-x12)+500,y12)
    line((500-x10)+500,y10,(500-x5)+500,y5)

    line((500-x5)+500,y5,(500-x7)+500,y7)

    translate(300,0)
    #vista lateral
    line(x4b,y4b,x3b,y3b)
    line(x3b,y3b,x2b,y2b)
    line(x2b,y2b,x8b,y8b)
    line(x8b,y8b,x9b,y9b)
    line(x9b,y9b,x10b,y10b)
    line(x10b,y10b,x7b,y7b)
    line(x7b,y7b,x7c,y7c)
    line(x7c,y7c,x4b,y4b)
    line(x7c,y7c,x6b,y6b)
    line(x6b,y6b,x5b,y5b)

    line(x12b,y12b,x3b,y3b)
    line(x12b,y12b,x2b,y2b)
    line(x12b,y12b,x4b,y4b)
    line(x12b,y12b,x8b,y8b)
    line(x12b,y12b,x5b,y5b)
    line(x4b,y4b,x9b,y9b)
    line(x9b,y9b,x12b,y12b)
    line(x10b,y10b,x5b,y5b)
    reset()

def auricom (x,y):
    translate(125,0)
    fill(r,g,b)
    nostroke()
    beginpath(xx2,yy2)
    lineto(xx12,yy12)
    lineto(xx13,yy13)
    lineto(xx10,yy10)
    lineto((500-xx10)+500,yy10)
    lineto((500-xx13)+500,yy13)
    lineto((500-xx12)+500,yy12)
    lineto((500-xx2)+500,yy2)
    endpath()
    fill(1-r,1-g,1-b)
    beginpath(xx7,yy7)
    lineto(xx6,yy6)
    lineto(xx4,yy4)
    lineto(xx16,yy16)
    endpath()
    beginpath((500-xx7)+500,yy7)
    lineto((500-xx6)+500,yy6)
    lineto((500-xx4)+500,yy4)
    lineto((500-xx16)+500,yy16)
    endpath()
    nofill()
    stroke(0.7)
    strokewidth(6)
    autoclosepath(False)
    beginpath(xx1,yy1)
    lineto(xx2,yy2)
    lineto(xx3,yy3)
    lineto(xx4,yy4)
    lineto(xx5,yy5)
    lineto(xx6,yy6)
    lineto(xx7,yy7)
    lineto(xx8,yy8)
    lineto(xx9,yy9)
    lineto(xx10,yy10)
    lineto(xx11,yy11)
    endpath()
   
    line(xx3,yy3,xx9,yy9)
    line(xx2,yy2,xx12,yy12)
    line(xx12,yy12,xx13,yy13)
    line(xx13,yy13,xx10,yy10)
   
    line(xx12,yy12,500,yy12)
    line(xx13,yy13,500,yy13)
   
    line(xx13,yy13,xx9,yy9)
    line(xx12,yy12,xx3,yy3)
    line(xx7,yy7,xx15,yy15)
    line(xx9,yy9,xx16,yy16)
    line(xx16,yy16,xx15,yy15)
    line(xx16,yy16,xx4,yy4)
    line(xx16,yy16,xx6,yy6)
    line(xx4,yy4,xx6,yy6)
    line(xx16,yy16,xx7,yy7)
    line(xx3,yy3,xx16,yy16)
   
    beginpath(xx1,yy1)
    lineto((500-xx2)+500,yy2)
    lineto((500-xx3)+500,yy3)
    lineto((500-xx4)+500,yy4)
    lineto((500-xx5)+500,yy5)
    lineto((500-xx6)+500,yy6)
    lineto((500-xx7)+500,yy7)
    lineto((500-xx8)+500,yy8)
    lineto((500-xx9)+500,yy9)
    lineto((500-xx10)+500,yy10)
    lineto((500-xx11)+500,yy11)
    endpath()
   
    line((500-xx3)+500,yy3,(500-xx9)+500,yy9)
    line((500-xx2)+500,yy2,(500-xx12)+500,yy12)
    line((500-xx12)+500,yy12,(500-xx13)+500,yy13)
    line((500-xx13)+500,yy13,(500-xx10)+500,yy10)
   
    line(xx12,yy12,(500-xx12)+500,yy12)
    line(xx13,yy13,(500-xx13)+500,yy13)
   
    line((500-xx13)+500,yy13,(500-xx9)+500,yy9)
    line((500-xx12)+500,yy12,(500-xx3)+500,yy3)
    line((500-xx7)+500,yy7,(500-xx15)+500,yy15)
    line((500-xx9)+500,yy9,(500-xx16)+500,yy16)
    line((500-xx16)+500,yy16,(500-xx15)+500,yy15)
    line((500-xx16)+500,yy16,(500-xx4)+500,yy4)
    line((500-xx16)+500,yy16,(500-xx6)+500,yy6)
    line((500-xx4)+500,yy4,(500-xx6)+500,yy6)
    line((500-xx16)+500,yy16,(500-xx7)+500,yy7)
    line((500-xx3)+500,yy3,(500-xx16)+500,yy16)

    translate(150,0)
    beginpath(xx1b,yy1)
    lineto(xx12b,yy12)
    lineto(xx13b,yy13)
    lineto(xx10b,yy10)
    lineto(xx1b,yy1)
    endpath()
    fill(1)
    beginpath(xx10b,yy10)
    lineto(xx1b,yy9)
    lineto(xx1b,yy9)
    endpath()
    beginpath(xx12b,yy12)
    lineto(xx3b,yy3)
    lineto(xx4b,yy4)
    lineto(xx1b,yy1)
    lineto(xx12b,yy12)
    line(xx1b,yy1,xx3b,yy3)
    endpath()
    beginpath(xx3b,yy3)
    lineto(xx16b,yy16)
    lineto(xx15b,yy15)
    lineto(xx15b,yy15)
    lineto(xx8b,yy8)
    lineto(xx7b,yy7)
    lineto(xx6b,yy6)
    lineto(xx5b,yy5)
    lineto(xx4b,yy4)
    lineto(xx3b,yy3)
    endpath()
    fill(1-r,1-g,1-b)
    beginpath(xx4b,yy4)
    lineto(xx16b,yy16)
    lineto(xx7b,yy7)
    lineto(xx6b,yy6)
    lineto(xx4b,yy4)
    endpath()
    nofill()
    line(xx15b,yy15,xx7b,yy7)
    line(xx7b,yy7,xx16b,yy16)
    line(xx6b,yy6,xx16b,yy16)
    line(xx4b,yy4,xx6b,yy6)
    line(xx4b,yy4,xx16b,yy16)
    reset()

petn=[feisar,auricom]
af=choice(petn)
for i in range(1):
    af (0,0)
b1= [“b”,”c”,”d”,”f”,”g”,”h”,”j”,”k”,”l”,”m”,”n”,”p”,”q”,”r”,”s”,”t”,”v”,”x”,”z”,”w”,”a”,”e”,”i”,”o”,”u”,”y”]
bb= choice(b1)
def logo (x,y):
    fill(r,g,b)
    strokewidth(5)
    stroke(1-r,1-g,1-b)
    oval(5,5,90,90)
    nostroke()
    fill(1-r,1-g,1-b)
    beginpath(random(0,25),random(0,50))
    lineto(random(25,50),random(0,50))
    lineto(random(50,75),random(0,50))
    lineto(random(75,100),random(0,50))
    lineto(random(75,100),random(50,100))
    lineto(random(50,75),random(50,100))
    lineto(random(25,50),random(50,100))
    lineto(random(0,25),random(50,100))
    endpath()
    fill(r,g,b)
    beginpath(random(0,25),random(30,50))
    lineto(random(50,75),random(30,50))
    lineto(random(75,100),random(50,70))
    lineto(random(25,50),random(50,70))
    endpath()
    fontsize(50)
    fill(1)
    font(“Delta Ray”)
    text(bb,10,70)
    reset()
for i in range(1):
    transform(CORNER)
    translate(50,1605)
    scale(3.2)
    logo (0,0)
translate(460,0)
fill(0.7)
nostroke()
rect(60,1820,440,30)
rect(530,1820,440,30)
rect(1000,1820,440,30)
rect(1470,1820,440,30)
rect(60,1865,440,30)
rect(530,1865,440,30)
rect(1000,1865,440,30)
rect(1470,1865,440,30)
speeed = random(30,420)
shield = random(30,420)
manouverability = random(30,420)
plasma = random(30,420)
fill(r,g,b)
rect(60,1820,speeed,30)
rect(530,1820,shield,30)
rect(1000,1820,manouverability,30)
rect(1470,1820,plasma,30)
fill(1-r,1-g,1-b)
rect(60,1865,speeed+random(-20,20),30)
rect(530,1865,shield+random(-20,20),30)
rect(1000,1865,manouverability+random(-20,20),30)
rect(1470,1865,plasma+random(-20,20),30)

b = [“b”,”c”,”d”,”f”,”g”,”h”,”j”,”k”,”l”,”m”,”n”,”p”,”q”,”r”,”s”,”t”,”v”,”x”,”z”,”w”]
a = [“a”,”e”,”i”,”o”,”u”,”y”]
c = [” industries”,” advancements”,” tech”,” developments”,” motors”,” engines”,” engineering”,” systems”,” research”,” corp”,” science”,” propulsion”,” reactors”,”“,”“,”“,”“,”“,”“,”“,”“,”“,”“,”“]

txt1 = “”
txt2 = “”
txt3 = “”

abbaab =[choice(a),choice(b),choice(b),choice(a),choice(a),choice(b),choice(c)]
aabba = [choice(a),choice(a),choice(b),choice(b),choice(a),choice(c)]
bbaabab = [choice(b),choice(b),choice(a),choice(a),choice(b),choice(a),choice(b),choice(c)]

txt1 = txt1.join(abbaab)
txt2 = txt2.join(aabba)
txt3 = txt3.join(bbaabab)

esquema =[txt1,txt2,txt3]

nome = choice(esquema)
fill(0.7)
fontsize(100)
font(“Delta Ray”)
text(bb+nome,60,1735)
fontsize(40)
text(“speed”,60,1810)
text(“shield”,530,1810)
text(“manouverability”,1000,1810)
text(“plasma”,1470,1810)
reset()
stroke(0.7)
strokewidth(6)
line(30,75,60,75)
line(30,1575,60,1575)
line(30,1605,60,1605)
line(30,1925,60,1925)
line(1205,75,1235,75)
line(1205,1575,1235,1575)
line(1265,75,1295,75)
line(1265,1575,1295,1575)
line(2470,75,2440,75)
line(2470,1575,2440,1575)
line(2470,1605,2440,1605)
line(2470,1925,2440,1925)
line(430,1605,460,1605)
line(430,1925,460,1925)
line(370,1605,400,1605)
line(370,1925,400,1925)

size(700,800)
ombroesq=[“ombroesq1.png”,”ombroesq2.png”,”ombroesq3.png”,”ombroesq4.png”,”ombroesq5.png”]
ombrodir=[“ombrodir1.png”,”ombrodir2.png”,”ombrodir3.png”,”ombrodir4.png”,”ombrodir5.png”]
pernaesq=[“pernaesq1.png”,”pernaesq2.png”,”pernaesq3.png”,”pernaesq4.png”,”pernaesq5.png”]
pernadir=[“pernadir1.png”,”pernadir2.png”,”pernadir3.png”,”pernadir4.png”,”pernadir5.png”]
bracoesq=[“bracoesq1.png”,”bracoesq2.png”,”bracoesq3.png”,”bracoesq4.png”,”bracoesq5.png”]
bracodir=[“bracodir1.png”,”bracodir2.png”,”bracodir3.png”,”bracodir4.png”,”bracodir5.png”]
cabeca=[“cabeca1.png”,”cabeca2.png”,”cabeca3.png”,”cabeca4.png”,”cabeca5.png”]

background(random(0.01,0.99),random(0.01,0.99),random(0.01,0.99))
image(choice(pernaesq),0,0)
image(choice(pernadir),0,0)
image(“tronco.png”,0,0)
image(choice(bracoesq),0,0)
image(choice(bracodir),0,0)
image(choice(ombroesq),0,0)
image(choice(ombrodir),0,0)
image(choice(cabeca),0,0)
fill(1)
rect(0,0,50,1000)
rect(0,0,700,70)
rect(600,0,100,300)
rect(680,300,100,800)
rect(0,650,700,150)
rect(480,630,400,30)
rect(0,600,200,60)