GMU:Bots 'n' Plots/Angelica Sohn: Difference between revisions

From Medien Wiki
(Created page with "Twitter: @ange_sohn Personal links: vimeo.com/angelicasohn")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Twitter: @ange_sohn  
Twitter: @ange_sohn  
Personal links: http://vimeo.com/angelicasohn


Personal links: vimeo.com/angelicasohn
=== My Works ===
[[Image:First_robot_as.png‎|400px|thumb|left|Angelica's robot]]
 
==== Animated Bot ====
 
<pre style="font-size:smaller" >
 
"""
 
Animated Bot
 
"""
 
 
rain = 24
 
def setup():
    size(400,400)
    background(100,100,100)
    noStroke()
 
def draw():
 
    windshield = 30+10 * sin(frameCount * 2)
   
    #windshield
    fill(0)
    rect(50,100,300,200)
   
    #windshield wiper 1
    fill(255)
    rect(150,180,windshield,100)
   
    fill(255)
    rect(250,180,windshield,100)
   
    rain = 20 + 4 * sin(frameCount * 0.1)
 
    #rain
    fill(0,255,0)
    ellipse(random(400),random(400),rain,rain)
   
    #rain2
#    fill(0,255,0)
#    ellipse(100,200,rain,rain)
   
    saveFrame('animatedbot_###.png')
    #saveFrame('animatedbot_###.gif')
   
def mouseClicked():
    background(100,100,100)
   
</pre>

Latest revision as of 14:22, 29 April 2015

Twitter: @ange_sohn Personal links: http://vimeo.com/angelicasohn

My Works

Angelica's robot

Animated Bot


"""

Animated Bot

"""


rain = 24

def setup():
    size(400,400)
    background(100,100,100)
    noStroke()

def draw():

    windshield = 30+10 * sin(frameCount * 2)
    
    #windshield
    fill(0)
    rect(50,100,300,200)
    
    #windshield wiper 1
    fill(255)
    rect(150,180,windshield,100)
    
    fill(255)
    rect(250,180,windshield,100)
    
    rain = 20 + 4 * sin(frameCount * 0.1)

    #rain 
    fill(0,255,0)
    ellipse(random(400),random(400),rain,rain)
    
    #rain2
#     fill(0,255,0)
#     ellipse(100,200,rain,rain)
    
    saveFrame('animatedbot_###.png')
    #saveFrame('animatedbot_###.gif')
    
def mouseClicked():
    background(100,100,100)