setFill()
graphics.py methods that set a shape's inside colour, its edge colour and its edge thickness.
In more detail
Colours are names such as "red" or "aquamarine", or values made with color_rgb. They can be changed after the shape is drawn and the window updates.
Example
c.setFill("yellow")
c.setOutline("black")Related terms
- graphics object — A shape in graphics.py, such as a Point, Line, Circle, Rectangle, Oval, Polygon or Text, which you construct and then draw in a window.
- RGB colour — A colour described by three intensities of red, green and blue light, each from 0 to 255.
Taught in
- A Graphics Introduction — Hands-on Python: Complete Video Course & Book
- Sample Graphics Programs — Hands-on Python: Complete Video Course & Book
- Reading The graphics.py Documentation — Hands-on Python: Complete Video Course & Book
- Animation: Loops, Bouncing, Flushing — Hands-on Python: Complete Video Course & Book