draw method

draw

Implements this interface to get DrawObject and Bound when rendering.

def draw(self, draw_object, x, y, width, height):
    ...
ParameterTypeDescription
draw_objectDrawObjectDrawObject will be initialized and returned when rendering
xfloatLeft of DrawObject
yfloatTop of DrawObject
widthfloatWidth of DrawObject
heightfloatHeight of DrawObject

See Also