GMU:Bots 'n' Plots/Natalia Martínez: Difference between revisions

From Medien Wiki
No edit summary
(clean up + add comments)
Line 7: Line 7:
[https://www.behance.net/MartinezNatalia Behance Portfolio]
[https://www.behance.net/MartinezNatalia Behance Portfolio]


----


'''Twitter Bot'''
==== Twitter Bot ====
 
[[File:Screen_Shot_2015-06-16_at_11.20.23_PM.png|300px|thumb|left]]
[[File:Screen_Shot_2015-06-16_at_11.29.40_PM.png|500px|thumb|left]]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
[https://www.behance.net link to the bot]
[http://pastebin.com/Z0DyDjaY link to the code]
 
 


'''Pasting Faces of animals on top of the faces on the picture'''


===== Screenshots =====


[[File:Screen_Shot_2015-06-16_at_11.20.23_PM.png|300px|thumb|left]]
<br style="clear:both">


[[File:Screen_Shot_2015-06-16_at_11.29.40_PM.png|500px|thumb|left]]
<br style="clear:both">


===== Code =====


[https://www.behance.net link to the bot], [http://pastebin.com/Z0DyDjaY link to the code] <br>


'''Pasting Faces of animals on top of the faces on the picture'''
===== About =====


"This was the bot I was working on but got stuck because the images did not match "
"This was the bot I was working on but got stuck because the images did not match "


[[File:Screen_Shot_2015-06-16_at_9.14.27_PM.png|600px|thumb|left]]
[[File:Screen_Shot_2015-06-16_at_9.14.27_PM.png|600px|thumb|left]]
<br style="clear:both" />
[https://pastebin.com/AgC6E4CZ link to the code] <br>




===== Comments =====


No Eyes Bot is still great.  Huge effect with little code! <br>
I have cleaned up your page a bit and added a comment section.
Everybody else, please do the same with your pages. <br>
You get the "Images do not match" error because the images and the rectangle you pass to the paste method don't match. If you use the `paste` method with the correct box size it should work. <br>
[[User:Ms| — Martin Schneider]] 12:53, 17 June 2015 (UTC)


----


==== Processing Bot ====


 
===== Source Code =====
 
<source lang="python">
 
[https://pastebin.com/AgC6E4CZ link to the code]
 
 
 
[[Image:Robot_1.jpg|80px|thumb|left|First Robot]]
 
 
 
 
 
 
 
[https://imgflip.com/gif/ktag3 Animation]
 
 
 
 
 
==== Robot Code ====
 
<pre style="font-size:smaller" >


"""
"""
Line 151: Line 123:
     #saveFrame('robot_1.jpg')
     #saveFrame('robot_1.jpg')
     saveFrame('myrobot_###.jpg')
     saveFrame('myrobot_###.jpg')
</source>
===== Screenshots =====
[[File:Robot_1.jpg|left|First Robot]]
<br style="clear:both" />
[https://imgflip.com/gif/ktag3 Animated Gif]

Revision as of 12:53, 17 June 2015

Hello | Hallo | Hola

-Graphic Designer studying Media Art and Design (M.F.A.)-

Behance Portfolio


Twitter Bot

Pasting Faces of animals on top of the faces on the picture

Screenshots
Screen Shot 2015-06-16 at 11.20.23 PM.png


Screen Shot 2015-06-16 at 11.29.40 PM.png


Code

link to the bot, link to the code

About

"This was the bot I was working on but got stuck because the images did not match "

Screen Shot 2015-06-16 at 9.14.27 PM.png


link to the code


Comments

No Eyes Bot is still great. Huge effect with little code!
I have cleaned up your page a bit and added a comment section. Everybody else, please do the same with your pages.
You get the "Images do not match" error because the images and the rectangle you pass to the paste method don't match. If you use the `paste` method with the correct box size it should work.
— Martin Schneider 12:53, 17 June 2015 (UTC)


Processing Bot

Source Code
"""
My Robot
"""
# Set up canvas

eye = 15

def setup():
    size(400,400)
    background (255)

    noStroke()

def draw():

    #color change background
    R = random(10,200)
    G = random(10,150)
    B = random(200,200)
    background(R,G,B)
    
    
    # Head
    fill(50,100,255)
    rect(100, 50, 170, 150)
    
    # # Glasses
    fill(255)
    rect (170, 110, 50, 3)
    rect(120, 100, 50, 30)
    rect(200, 100, 50, 30)

    #line(170, 110, 200, 110)
    


    # increase eyes
    eye = 10 + 5 * sin(frameCount * 0.1)
    
    # arm movement
    #position1 = up1,

    #Right Eye
    fill(100)
    ellipse(220,120,eye,eye)
    
    #Left Eye
    ellipse(150,120,eye,eye)
    
    # Body
    fill(50,200,255)
    rect(155, 200, 60, 150)

    #Right foot
    fill(150,70,190)
    ellipse(200,350,25,25)
    
    #Right foot
    ellipse(170,350,25,25)
    
    #Right Arm
    fill(50,200,255)
    #rotate (-TWO_PI /8)
    #translate(-215,100)
    rect(220, 200, 20, 90)
    
    #Left Arm
    #translate(100,100)
    rect(130, 200, 20, 90)
    

    
    #saveFrame('robot_1.jpg')
    saveFrame('myrobot_###.jpg')
Screenshots
First Robot


Animated Gif