turtle.Shape

class turtle.Shape(type_, data=None)[source]

Data structure modeling shapes.

attribute _type is one of “polygon”, “image”, “compound” attribute _data is - depending on _type a poygon-tuple, an image or a list constructed using the addcomponent method.

Methods

__format__ default object formatter
__init__(type_[, data])
__new__((S, ...)
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__sizeof__(() -> int) size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().
addcomponent(poly, fill[, outline]) Add component to a shape of type compound.