draw méthode

draw(draw_object, x, y, width, height)

Implémente cette interface pour obtenir DrawObject et Bound lors du rendu.

def draw(self, draw_object, x, y, width, height):
    ...
Paramètre Taper Description
draw_object DrawObject DrawObject sera initialisé et renvoyé lors du rendu
x float À gauche de DrawObject
y float Haut de DrawObject
width float Largeur de DrawObject
height float Hauteur de DrawObject

Voir également