def clearScreen(self, display = True):
self.disp.clear()
if(display):
self.disp.display()
## Draw a rectangle on the screen (rotated to screen)
# @param self The object pointer.
# @param x The upper left x coordinate of the rectangle.
# @param y The upper left y coordinate of the rectangle.
# @param width The width of the rectangle.
# @param height The height of the rectangle.
# @param fill The color of inside of the rectangle. Optional, defaults to white.
# @param outline The color of the outer edge of the rectangle. Optional, defaults to no outline.
# @param display Choose to immediately push the drawing to the screen. Optional, defaults to True.
# @remark
# To use this function in your program:
# @code
# ...
# screen.fillRect(100, 100, 75, 75, fill = (255,0,0), outline = (0,0,0))
# @endcode
评论列表
文章目录