Line 11: | Line 11: | ||
<br style="clear:both"> | <br style="clear:both"> | ||
==== Dog Bot Code ==== | |||
<pre style="font-size:smaller" > | |||
""" | |||
My lovely Dog Bot | |||
""" | |||
# Drawing style | |||
size(400,400) | |||
background("#FF8000") | |||
fill(255,0,100,90) | |||
strokeWeight(10) | |||
rect(150,120,100,200) | |||
# Nose | |||
ellipse(200,300,60,60) | |||
# Eears | |||
pushMatrix() | |||
translate(250,120) | |||
rotate(-TWO_PI /10) | |||
rect(0,0,20,150) | |||
popMatrix() | |||
pushMatrix() | |||
translate(150,120) | |||
scale(-1,1) | |||
rotate(-TWO_PI /8) | |||
rect(0,0,20,150) | |||
popMatrix() | |||
# Eyes | |||
pushMatrix() | |||
translate(275,120) | |||
scale(-1,1) | |||
ellipse(50,70,10,10) | |||
ellipse(100,70,10,10) | |||
strokeWeight(5) | |||
ellipse(120,70,30,30) | |||
ellipse(30,70,30,30) | |||
popMatrix() | |||
# saveFrame("sminKimRobot2.png") | |||
</pre> |
Revision as of 21:09, 27 April 2015
Hello world!
My name is Smin Kim. I'm studying in Media art and design Bauhaus University Weimar Master course. live and work in Weimar. Nice to see you here!
SNS
lovely Bot
Dog Bot Code
""" My lovely Dog Bot """ # Drawing style size(400,400) background("#FF8000") fill(255,0,100,90) strokeWeight(10) rect(150,120,100,200) # Nose ellipse(200,300,60,60) # Eears pushMatrix() translate(250,120) rotate(-TWO_PI /10) rect(0,0,20,150) popMatrix() pushMatrix() translate(150,120) scale(-1,1) rotate(-TWO_PI /8) rect(0,0,20,150) popMatrix() # Eyes pushMatrix() translate(275,120) scale(-1,1) ellipse(50,70,10,10) ellipse(100,70,10,10) strokeWeight(5) ellipse(120,70,30,30) ellipse(30,70,30,30) popMatrix() # saveFrame("sminKimRobot2.png")