User manual

70
This is followed by six queries all performed in the same way. If the random number thrown has a certain
value, one to six dice spot will be marked accordingly. The function employed is
pygame.draw.circle()
and requires four to five parameters:
Surface
specifies the drawing canvas, which is FIELD in the example.
Colour
specifies the colour of the circle, in the example, the previously defined colour WHITE.
Midpopint
specifies the centre of the circle.
Radius
specifies the radius of the circle.
Thickness
is the line width of the circle line. If this parameter is omitted or set to 0, the circle is filled.
If one of the
conditions is met, the dice spots are first saved to the virtual canvas.
pygame.display.update() This is the line at the end of the loop that updates the graphic on the screen.
Now you can in fact see the dots on the dice.