Exemple #1
0
def lines(surface, color, closed, points, width=1, antialias=False):
    points = [offset.pos_offset(p) for p in points]
    return backend.lines(surface, color, closed, points, width, antialias)
Exemple #2
0
def draw_font(surface, fakefont_surface, pos):
    pos = offset.pos_offset(pos)
    return backend.draw_font(surface, fakefont_surface, pos)
Exemple #3
0
def line(surface, color, startpos, endpos, width=1, antialias=False):
    startpos = offset.pos_offset(startpos)
    endpos = offset.pos_offset(endpos)
    return backend.line(surface, color, startpos, endpos, width=width, antialias=antialias)