Myro_graphics

Myro_graphics - Myro Graphics Douglas Blank Bryn Mawr...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
Myro Graphics Douglas Blank Bryn Mawr College Institute for Personal Robots in Education IPRE Winter Workshop Atlanta, GA January 7-9, 2011
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Graphics
Background image of page 2
Games YouTube game videos available at cs.brynmawr.edu/games
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Music
Background image of page 4
Instant Messaging and the Web
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Vision and Image Processing
Background image of page 6
Graphics Different graphical objects: Window Points Lines Circles Polygons Text from myro import * win = GraphWin() win.setBackground("red") p = Point(100, 100) p.draw(win) c = Circle(p, 50) c.setFill(‘green’) c.draw(win)
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
GraphWin Main Graphics Window win = GraphWin() #200x200 window win.getWidth() # 200 win.getHeight() # 200
Background image of page 8
Point An (X,Y) point win = GraphWin() #200x200 window p1 = Point(75, 50) p1.draw(win) p2 = Point(125, 50) p2.draw(win) p3 = Point(100, 75) p3.setFill(“red”) p3.draw(win) p1.getX() p1.getY()
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Points to Lines? A series of points win = GraphWin() #200x200 window for i in range(90, 110): p = Point(i, 75) p.setFill(‘red’) p.draw(win) p3 = Point(90, 75) p4 = Point(110, 75) l = Line(p3, p4) l.setFill(‘red’) l.draw(win)
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 20

Myro_graphics - Myro Graphics Douglas Blank Bryn Mawr...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online