示例#1
0
def drawPolygon(*points, **options):
    if isinstance(points[0], tuple):
        if isinstance(points[0][0], list):
            GraphicsController.drawPolygon(points[0][0], points[1])
            return

    if 'rotation' in options:
        GraphicsController.drawPolygon(points, options["rotation"])
    else:
        GraphicsController.drawPolygon(points, 0)
示例#2
0
def drawCircle(x, y, radius, rotation = 0):
    GraphicsController.drawCircle(x, y, radius)
示例#3
0
def drawRectangle(x, y, width, height, rotation = 0):
    GraphicsController.drawRectangle(x, y, width, height, rotation)
示例#4
0
def GLscale(sx, sy):
    GraphicsController.GLscale(sx, sy)
示例#5
0
def drawRectangle(x, y, width, height):
    GraphicsController.drawRectangle(x, y, width, height)
示例#6
0
def getStringDimensions(string):
    return GraphicsController.getStringDimensions(string)
示例#7
0
def drawPoint(x, y):
    GraphicsController.drawPoint(x, y)
示例#8
0
def drawRegularPolygon(x, y, order, size, rotation = 0):
    if not order >= 3:
        raise Exception("A polygon must have more than two vertices, DUMBASS!")

    GraphicsController.drawRegularPolygon(x, y, int(order), size, rotation)
示例#9
0
def drawImage(image, x, y, width, height):
    GraphicsController.drawImage(image, x, y, width, height)
示例#10
0
def loadImage(src, smooth = True, animatedImageCountX = 1):
    return GraphicsController.loadImage(src, smooth, animatedImageCountX)
示例#11
0
文件: init.py 项目: bartvbl/pixeltoy
def drawString(x, y, string):
	GraphicsController.drawString(x, y, string)
示例#12
0
文件: init.py 项目: bartvbl/pixeltoy
def drawCircle(x, y, radius):
	GraphicsController.drawCircle(x, y, radius)
示例#13
0
文件: init.py 项目: bartvbl/pixeltoy
def drawRectangle(x, y, width, height):
	GraphicsController.drawRectangle(x, y, width, height)
示例#14
0
def drawString(x, y, string):
    GraphicsController.drawString(x, y, string)
示例#15
0
def drawCircle(x, y, radius):
    GraphicsController.drawCircle(x, y, radius)
示例#16
0
def drawEllipse(x, y, radiusX, radiusY, rotation = 0):
    GraphicsController.drawEllipse(x, y, radiusX, radiusY, rotation)
示例#17
0
def GLpush():
    GraphicsController.GLpush()
示例#18
0
def GLpop():
    GraphicsController.GLpop()
示例#19
0
def drawLine(x1, y1, x2, y2):
    GraphicsController.drawLine(x1, y1, x2, y2)
示例#20
0
def GLtranslate( dx, dy):
    GraphicsController.GLtranslate(dx, dy)
示例#21
0
def drawString(x, y, string, size = 1, rotation = 0, centered = True):
    GraphicsController.drawString(x, y, str(string), size, rotation, centered)
示例#22
0
def GLrotate(angle):
    GraphicsController.GLrotate(angle)
示例#23
0
def setWireFrame(enabled):
    GraphicsController.setWireFrame(enabled)
示例#24
0
def loadImage(src):
	return GraphicsController.loadImage(src)