示例#1
0
def dot(x, y, size=(1, 1), outline_color=Color.RED, outline_thickness=1):
    d = RectangleShape()
    d.size = size
    d.outline_color = outline_color
    d.outline_thickness = outline_thickness
    d.x = x
    d.y = y

    return d
示例#2
0
def dot(x, y, size=(1,1), outline_color = Color.RED, outline_thickness = 1):
    d = RectangleShape()
    d.size = size
    d.outline_color = outline_color
    d.outline_thickness = outline_thickness
    d.x = x
    d.y = y

    return d
示例#3
0
def line(size=(1,1), outline_color = Color.BLACK, x=0, y=0, rotate = 0, outline_thickness = 1):
    l = RectangleShape()
    l.size = size
    l.outline_color = outline_color
    l.outline_thickness = outline_thickness
    l.x = x
    l.y = y
    if rotate != 0:
        l.rotate(rotate)

    return l
示例#4
0
def line(size=(1, 1),
         outline_color=Color.BLACK,
         x=0,
         y=0,
         rotate=0,
         outline_thickness=1):
    l = RectangleShape()
    l.size = size
    l.outline_color = outline_color
    l.outline_thickness = outline_thickness
    l.x = x
    l.y = y
    if rotate != 0:
        l.rotate(rotate)

    return l