Making a Gradient Patch
Goal
Creation of a patch that will be part of global A0 composition of patches made by XPUB1 students.
Creation of a patch - Draft 01
I guess there could be way easier methods to do this, but here is how I created a gradient that is slowly deconsctructed by .random function.
Code:
width1 = 82
height1 = 1
characters1 = ['█','█']
output = open("martinpath_01.txt",'w')
for y in range(height1):
line1 = ''
for x in range(width1):
line1 += random.choice(characters1)
print(line1)
print(line1,file = output)
#print (y)
width2 = 82
height2 = 1
characters2 = ['▇','▇']
for y in range(height2):
line2 = ''
for x in range(width2):
line2 += random.choice(characters2)
print(line2)
print(line2,file = output)
width3 = 82
height3 = 1
characters3 = ['▆','▆']
for y in range(height3):
line3 = ''
for x in range(width3):
line3 += random.choice(characters3)
print(line3)
print(line3,file = output)
width4 = 82
height4 = 1
characters4 = ['▅','▅']
for y in range(height4):
line4 = ''
for x in range(width4):
line4 += random.choice(characters4)
print(line4)
print(line4,file = output)
width5 = 82
height5 = 1
characters5 = ['▄','▄']
for y in range(height5):
line5 = ''
for x in range(width5):
line5 += random.choice(characters5)
print(line5)
print(line5,file = output)
width6 = 82
height6 = 1
characters6 = ['▃','▃']
for y in range(height6):
line6 = ''
for x in range(width6):
line6 += random.choice(characters6)
print(line6)
print(line6,file = output)
width7 = 82
height7 = 1
characters7 = ['▂','▂']
for y in range(height7):
line7 = ''
for x in range(width7):
line7 += random.choice(characters7)
print(line7)
print(line7,file = output)
width8 = 82
height8 = 1
characters8 = ['▁','▁']
for y in range(height8):
line8 = ''
for x in range(width8):
line8 += random.choice(characters8)
print(line8)
print(line8,file = output)
width9 = 82
height9 = 1
characters9 = ['_','_']
for y in range(height9):
line9 = ''
for x in range(width9):
line9 += random.choice(characters9)
print(line9)
print(line9,file = output)
width10 = 82
height10 = 1
characters10 = ['▁','▁']
for y in range(height10):
line10 = ''
for x in range(width10):
line10 += random.choice(characters10)
print(line10)
print(line10,file = output)
width11 = 82
height11 = 1
characters11 = ['▂','▂']
for y in range(height11):
line11 = ''
for x in range(width11):
line11 += random.choice(characters11)
print(line11)
print(line11,file = output)
width12 = 82
height12 = 1
characters12 = ['▃','▃']
for y in range(height12):
line12 = ''
for x in range(width12):
line12 += random.choice(characters12)
print(line12)
print(line12,file = output)
width13 = 82
height13 = 1
characters13 = ['▄','▄']
for y in range(height13):
line13 = ''
for x in range(width13):
line13 += random.choice(characters13)
print(line13)
print(line13,file = output)
width14 = 82
height14 = 1
characters14 = ['▅','▅']
for y in range(height14):
line14 = ''
for x in range(width14):
line14 += random.choice(characters14)
print(line14)
print(line14,file = output)
width15 = 82
height15 = 1
characters15 = ['▆','▆']
for y in range(height15):
line15 = ''
for x in range(width15):
line15 += random.choice(characters15)
print(line15)
print(line15,file = output)
width16 = 82
height16 = 1
characters16 = ['▇','▇']
for y in range(height16):
line16 = ''
for x in range(width16):
line16 += random.choice(characters16)
print(line16)
print(line16,file = output)
width18 = 82
height18 = 1
characters18 = ['▇','█']
for y in range(height18):
line18 = ''
for x in range(width18):
line18 += random.choice(characters18)
print(line18)
print(line18,file = output)
width18 = 82
height18 = 1
characters18 = ['▇','▆']
for y in range(height18):
line18 = ''
for x in range(width18):
line18 += random.choice(characters18)
print(line18)
print(line18,file = output)
width19 = 82
height19 = 1
characters19 = ['▅','▆']
for y in range(height19):
line19 = ''
for x in range(width19):
line19 += random.choice(characters19)
print(line19)
print(line19,file = output)
width20 = 82
height20 = 1
characters20 = ['▅','▄']
for y in range(height20):
line20 = ''
for x in range(width20):
line20 += random.choice(characters20)
print(line20)
print(line20,file = output)
width21 = 82
height21 = 1
characters21 = ['▄','▃']
for y in range(height21):
line21 = ''
for x in range(width21):
line21 += random.choice(characters21)
print(line21)
print(line21,file = output)
width22 = 82
height22 = 1
characters22 = ['▃','▂']
for y in range(height22):
line22 = ''
for x in range(width22):
line22 += random.choice(characters22)
print(line22)
print(line22,file = output)
width23 = 82
height23 = 1
characters23 = ['▂','▁']
for y in range(height23):
line23 = ''
for x in range(width23):
line23 += random.choice(characters23)
print(line23)
print(line23,file = output)
width24 = 82
height24 = 1
characters24 = ['▁','_']
for y in range(height24):
line24 = ''
for x in range(width24):
line24 += random.choice(characters24)
print(line24)
print(line24,file = output)
width25 = 82
height25 = 1
characters25 = ['▂','▁']
for y in range(height25):
line25 = ''
for x in range(width25):
line25 += random.choice(characters25)
print(line25)
print(line25,file = output)
width26 = 82
height26 = 1
characters26 = ['▃','▂']
for y in range(height26):
line26 = ''
for x in range(width26):
line26 += random.choice(characters26)
print(line26)
print(line26,file = output)
width27 = 82
height27 = 1
characters27 = ['▄','▃']
for y in range(height27):
line27 = ''
for x in range(width27):
line27 += random.choice(characters27)
print(line27)
print(line27,file = output)
width28 = 82
height28 = 1
characters28 = ['▅','▄']
for y in range(height28):
line28 = ''
for x in range(width28):
line28 += random.choice(characters28)
print(line28)
print(line28,file = output)
width29 = 82
height29 = 1
characters29 = ['▅','▆']
for y in range(height29):
line29 = ''
for x in range(width29):
line29 += random.choice(characters29)
print(line29)
print(line29,file = output)
width30 = 82
height30 = 1
characters30 = ['▇','▆']
for y in range(height30):
line30 = ''
for x in range(width30):
line30 += random.choice(characters30)
print(line30)
print(line30,file = output)
width31 = 82
height31 = 1
characters31 = ['▇','█']
for y in range(height31):
line31 = ''
for x in range(width31):
line31 += random.choice(characters31)
print(line31)
print(line31,file = output)
width33 = 82
height33 = 1
characters33 = ['█','▇','▆']
for y in range(height33):
line33 = ''
for x in range(width33):
line33 += random.choice(characters33)
print(line33)
print(line33,file = output)
#print (y)
width34 = 82
height34 = 1
characters34 = ['▇','▆','▅']
for y in range(height34):
line34 = ''
for x in range(width34):
line34 += random.choice(characters34)
print(line34)
print(line34,file = output)
#print (y)
width35 = 82
height35 = 1
characters35 = ['▆','▅','▄']
for y in range(height35):
line35 = ''
for x in range(width35):
line35 += random.choice(characters35)
print(line35)
print(line35,file = output)
#print (y)
width36 = 82
height36 = 1
characters36 = ['▅','▄','▃']
for y in range(height36):
line36 = ''
for x in range(width36):
line36 += random.choice(characters36)
print(line36)
print(line36,file = output)
#print (y)
width37 = 82
height37 = 1
characters37 = ['▄','▃','▂']
for y in range(height37):
line37 = ''
for x in range(width37):
line37 += random.choice(characters37)
print(line37)
print(line37,file = output)
#print (y)
width38 = 82
height38 = 1
characters38 = ['▃','▂','▁']
for y in range(height38):
line38 = ''
for x in range(width38):
line38 += random.choice(characters38)
print(line38)
print(line38,file = output)
#print (y)
width39 = 82
height39 = 1
characters39 = ['▂','▁','_']
for y in range(height39):
line39 = ''
for x in range(width39):
line39 += random.choice(characters39)
print(line39)
print(line39,file = output)
#print (y)
width40 = 82
height40 = 1
characters40 = ['▃','▂','▁']
for y in range(height40):
line40 = ''
for x in range(width40):
line40 += random.choice(characters40)
print(line40)
print(line40,file = output)
#print (y)
width41 = 82
height41 = 1
characters41 = ['▄','▃','▂']
for y in range(height41):
line41 = ''
for x in range(width41):
line41 += random.choice(characters37)
print(line41)
print(line41,file = output)
#print (y)
width42 = 82
height42 = 1
characters42 = ['▅','▄','▃']
for y in range(height42):
line42 = ''
for x in range(width42):
line42 += random.choice(characters42)
print(line42)
print(line42,file = output)
#print (y)
width43 = 82
height43 = 1
characters43 = ['▆','▅','▄']
for y in range(height43):
line43 = ''
for x in range(width43):
line43 += random.choice(characters43)
print(line43)
print(line43,file = output)
#print (y)
width44 = 82
height44 = 1
characters44 = ['▇','▆','▅']
for y in range(height44):
line44 = ''
for x in range(width44):
line44 += random.choice(characters44)
print(line44)
print(line44,file = output)
#print (y)
width45 = 82
height45 = 1
characters45 = ['█','▇','▆']
for y in range(height45):
line45 = ''
for x in range(width45):
line45 += random.choice(characters45)
print(line45)
print(line45,file = output)
#print (y)
width47 = 82
height47 = 1
characters47 = ['█','▇','▆','▅']
for y in range(height47):
line47 = ''
for x in range(width47):
line47 += random.choice(characters47)
print(line47)
print(line47,file = output)
#print (y)
width48 = 82
height48 = 1
characters48 = ['▇','▆','▅','▄']
for y in range(height48):
line48 = ''
for x in range(width48):
line48 += random.choice(characters48)
print(line48)
print(line48,file = output)
#print (y)
width49 = 82
height49 = 1
characters49 = ['▆','▅','▄','▃']
for y in range(height49):
line49 = ''
for x in range(width49):
line49+= random.choice(characters49)
print(line49)
print(line49,file = output)
#print (y)
width50 = 82
height50 = 1
characters50 = ['▅','▄','▃','▂']
for y in range(height50):
line50 = ''
for x in range(width50):
line50 += random.choice(characters50)
print(line50)
print(line50,file = output)
#print (y)
width51 = 82
height51 = 1
characters51 = ['▄','▃','▂','▁']
for y in range(height51):
line51 = ''
for x in range(width51):
line51 += random.choice(characters51)
print(line51)
print(line51,file = output)
#print (y)
width52 = 82
height52 = 1
characters52 = ['▃','▂','▁','_']
for y in range(height52):
line52 = ''
for x in range(width52):
line52 += random.choice(characters52)
print(line52)
print(line52,file = output)
#print (y)
width53 = 82
height53 = 1
characters53 = ['▄','▃','▂','▁']
for y in range(height53):
line53 = ''
for x in range(width53):
line53 += random.choice(characters53)
print(line53)
print(line53,file = output)
#print (y)
width54 = 82
height54 = 1
characters54 = ['▅','▄','▃','▂']
for y in range(height54):
line54 = ''
for x in range(width54):
line54 += random.choice(characters54)
print(line54)
print(line54,file = output)
#print (y)
width55 = 82
height55 = 1
characters55 = ['▆','▅','▄','▃']
for y in range(height55):
line55 = ''
for x in range(width55):
line55 += random.choice(characters55)
print(line55)
print(line55,file = output)
#print (y)
width56 = 82
height56 = 1
characters56 = ['▇','▆','▅','▄']
for y in range(height56):
line56 = ''
for x in range(width56):
line56 += random.choice(characters56)
print(line56)
print(line56,file = output)
#print (y)
width57 = 82
height57 = 1
characters57 = ['█','▇','▆','▅']
for y in range(height57):
line57 = ''
for x in range(width57):
line57 += random.choice(characters57)
print(line57)
print(line57,file = output)
#print (y)
width59 = 82
height59 = 1
characters59 = ['█','▇','▆','▅','▄']
for y in range(height59):
line59 = ''
for x in range(width59):
line59 += random.choice(characters59)
print(line59)
print(line59,file = output)
#print (y)
width60 = 82
height60 = 1
characters60 = ['▇','▆','▅','▄','▃']
for y in range(height60):
line60 = ''
for x in range(width60):
line60 += random.choice(characters60)
print(line60)
print(line60,file = output)
#print (y)
width61 = 82
height61 = 1
characters61 = ['▆','▅','▄','▃','▂']
for y in range(height61):
line61 = ''
for x in range(width61):
line61 += random.choice(characters61)
print(line61)
print(line61,file = output)
#print (y)
width62 = 82
height62 = 1
characters62 = ['▅','▄','▃','▂','▁']
for y in range(height62):
line62 = ''
for x in range(width62):
line62 += random.choice(characters62)
print(line62)
print(line62,file = output)
#print (y)
width63 = 82
height63 = 1
characters63 = ['▄','▃','▂','▁','_']
for y in range(height63):
line63 = ''
for x in range(width63):
line63 += random.choice(characters63)
print(line63)
print(line63,file = output)
#print (y)
width64 = 82
height64 = 1
characters64 = ['▅','▄','▃','▂','▁']
for y in range(height64):
line64 = ''
for x in range(width64):
line64 += random.choice(characters64)
print(line64)
print(line64,file = output)
#print (y)
width65 = 82
height65 = 1
characters65 = ['▆','▅','▄','▃','▂']
for y in range(height65):
line65 = ''
for x in range(width65):
line65 += random.choice(characters65)
print(line65)
print(line65,file = output)
#print (y)
width66 = 82
height66 = 1
characters66 = ['▇','▆','▅','▄','▃']
for y in range(height66):
line66 = ''
for x in range(width66):
line66 += random.choice(characters66)
print(line66)
print(line66,file = output)
#print (y)
width67 = 82
height67 = 1
characters67 = ['█','▇','▆','▅','▄']
for y in range(height67):
line67 = ''
for x in range(width67):
line67 += random.choice(characters67)
print(line67)
print(line67,file = output)
#print (y)
width69 = 82
height69 = 1
characters69 = ['█','▇','▆','▅','▄','▃']
for y in range(height69):
line69 = ''
for x in range(width69):
line69 += random.choice(characters69)
print(line69)
print(line69,file = output)
#print (y)
width70 = 82
height70 = 1
characters70 = ['▇','▆','▅','▄','▃','▂']
for y in range(height70):
line70 = ''
for x in range(width70):
line70 += random.choice(characters70)
print(line70)
print(line70,file = output)
#print (y)
width71 = 82
height71 = 1
characters71 = ['▆','▅','▄','▃','▂','▁']
for y in range(height71):
line71 = ''
for x in range(width71):
line71 += random.choice(characters71)
print(line71)
print(line71,file = output)
#print (y)
width72 = 82
height72 = 1
characters72 = ['▅','▄','▃','▂','▁','_']
for y in range(height72):
line72 = ''
for x in range(width72):
line72 += random.choice(characters72)
print(line72)
print(line72,file = output)
#print (y)
width73 = 82
height73 = 1
characters73 = ['▆','▅','▄','▃','▂','▁']
for y in range(height73):
line73 = ''
for x in range(width73):
line73 += random.choice(characters73)
print(line73)
print(line73,file = output)
#print (y)
width74 = 82
height74 = 1
characters74 = ['▇','▆','▅','▄','▃','▂']
for y in range(height74):
line74 = ''
for x in range(width74):
line74 += random.choice(characters74)
print(line74)
print(line74,file = output)
#print (y)
width75 = 82
height75 = 1
characters75 = ['█','▇','▆','▅','▄','▃']
for y in range(height75):
line75 = ''
for x in range(width75):
line75 += random.choice(characters75)
print(line75)
print(line75,file = output)
#print (y)
width75 = 82
height75 = 1
characters75 = ['█','▇','▆','▅','▄','▃','▂']
for y in range(height75):
line75 = ''
for x in range(width75):
line75 += random.choice(characters75)
print(line75)
print(line75,file = output)
#print (y)
width75 = 82
height75 = 1
characters75 = ['▇','▆','▅','▄','▃','▂','▁']
for y in range(height75):
line75 = ''
for x in range(width75):
line75 += random.choice(characters75)
print(line75)
print(line75,file = output)
#print (y)
width75 = 82
height75 = 1
characters75 = ['▆','▅','▄','▃','▂','▁','_']
for y in range(height75):
line75 = ''
for x in range(width75):
line75 += random.choice(characters75)
print(line75)
print(line75,file = output)
#print (y)
output.close()