Beispiel #1
0
def get_screen():
    screen = Screen()
    screen.setup(*conf.SCREEN_SIZE)
    screen.bgcolor(conf.BACKGROUND)
    screen.tracer(conf.TRACER)
    screen.delay(conf.DELAY)
    screen.title(conf.TITLE)
    screen.speed = conf.SPEED
    screen.winheight = screen.window_height() * .95
    screen.winwidth = screen.window_width() * .95
    screen.width = screen.winwidth // 2
    screen.height = screen.winheight // 2
    screen.blockwidth = conf.BLOCK_WIDTH
    screen.increment = screen.blockheight = conf.BLOCK_HEIGHT
    screen.base = screen.height
    screen.start = -screen.width + screen.blockwidth
    screen.blocks = int(((screen.width * 2) - (screen.blockwidth * 2)) //
                        (screen.blockwidth + 1))
    screen.gradient = gradient(conf.GRADIENT, screen.blocks)
    return screen