コード例 #1
0
ファイル: __init__.py プロジェクト: SapphireDensetsu/enough
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)
コード例 #2
0
ファイル: __init__.py プロジェクト: SapphireDensetsu/enough
def draw_font(surface, fakefont_surface, pos):
    pos = offset.pos_offset(pos)
    return backend.draw_font(surface, fakefont_surface, pos)
コード例 #3
0
ファイル: __init__.py プロジェクト: SapphireDensetsu/enough
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)