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)