Lab Time:10/18/2019
Lab Content:
- Select a picture as my motif
- Draw it with my processing
Detailed Description:
I picked one picture by Sol Lweitt, (source: https://www.wnpr.org/post/art-idea-look-sol-lewitt).
The reason why I wanted to draw a motif of that is the style of its design is pretty close to one of my favorite albums, “Better Late than Never” by 腰乐队(source: https://music.douban.com/subject/25893150/):
Its texture is pretty attractive as well and that’s why I selected that picture. But for the computer drawing, I only choose the middle part as my object.
The method I used is basically printing all those lines brutally (partly because Young told me not to use iteration here), and it works perfectly. Below is the code.
size(330, 330)
background(255, 255, 255)
fill(0,0,0)
rect(0,0,10,330)
fill(0,0,205)
rect(320,0,10,330)
rect(20,0,10,330)
fill(255,48,48)
rect(300,0,10,330)
rect(40,0,10,330)
fill(180,82,205)
rect(280,0,10,330)
rect(60,0,10,330)
fill(0,255,127)
rect(260,0,10,330)
rect(80,0,10,330)
fill(255,215,0)
rect(240,0,10,330)
rect(100,0,10,40)
fill(255,48,48)
rect(100,290,10,40)
rect(120,0,10,40)
fill(0,191,255)
rect(120,290,10,40)
rect(140,0,10,40)
fill(255,165,0)
rect(140,290,10,40)
rect(160,0,10,40)
fill(255,240,245)
rect(160,290,10,40)
rect(180,0,10,40)
fill(0,139,69)
rect(180,290,10,40)
rect(200,0,10,40)
fill(255,222,173)
rect(200,290,10,40)
rect(220,0,10,40)
fill(0,0,0)
rect(220,290,10,40)
rect(100,50,130,10)
rect(100,70,130,10)
rect(100,90,130,10)
rect(100,110,130,10)
rect(100,130,130,10)
rect(100,150,130,10)
rect(100,170,130,10)
rect(100,190,130,10)
rect(100,210,130,10)
rect(100,230,130,10)
rect(100,250,130,10)
rect(100,270,130,10)
One thing that need to mention is that I installed the python mode in processing, so you can tell there are some slight differences between my code and what it should be in Java mode.
And above is the final result of my drawing code. These two pictures are almost the same (except for some shadow effect on the original picture). I think computer drawing maybe is not a good idea, ’cause it’s too ordered, which seems to lack of anima and inspiration; and using too much randomization, the picture would seems too chaotic.