Skip to content

Instantly share code, notes, and snippets.

@brentxphillips
Created February 19, 2021 02:44
Show Gist options
  • Save brentxphillips/8d3c9e11f652fe62c20a7e7090936f0d to your computer and use it in GitHub Desktop.
Save brentxphillips/8d3c9e11f652fe62c20a7e7090936f0d to your computer and use it in GitHub Desktop.
Two circles, filled plus background
# Brent Phillips
# CS 5001/5003 Spring 2021
# Two circles, background and fill
import graphicsPlus as gr
win = gr.GraphWin("Simple Circle", 400, 400)
win.setBackground("#072BB8")
mycircle = gr.Circle(gr.Point(100, 150), 20)
mycircle.setFill("black")
mycircle.draw(win)
mycircle2 = gr.Circle(gr.Point(50, 50), 20)
mycircle2.setFill("black")
mycircle2.draw(win)
win.getMouse()
win.close
if __name__ == "__main__":
draw_shapes()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment