#!/usr/bin/env python

import time
import math

import scrollphathd

speed_factor = 10

try:
    while True:
        scale = (math.sin(time.time() * speed_factor) + 1) / 2
        offset = 0
        for x in range(scrollphathd.width):
            for y in range(scrollphathd.height):
                offset += 1
                color = 0.25 * scale * (offset % 2)
                scrollphathd.pixel(x, y, color)

        scrollphathd.show()

except KeyboardInterrupt:
    scrollphathd.fill(0)

4708917bb0732cc7237a266aed70197c84b6e09e
<mask token>

<mask token>
try:
    while True:
        scale = (math.sin(time.time() * speed_factor) + 1) / 2
        offset = 0
        for x in range(scrollphathd.width):
            for y in range(scrollphathd.height):
                offset += 1
                color = 0.25 * scale * (offset % 2)
                scrollphathd.pixel(x, y, color)
        scrollphathd.show()
except KeyboardInterrupt:
    scrollphathd.fill(0)

<mask token>
speed_factor = 10
try:
    while True:
        scale = (math.sin(time.time() * speed_factor) + 1) / 2
        offset = 0
        for x in range(scrollphathd.width):
            for y in range(scrollphathd.height):
                offset += 1
                color = 0.25 * scale * (offset % 2)
                scrollphathd.pixel(x, y, color)
        scrollphathd.show()
except KeyboardInterrupt:
    scrollphathd.fill(0)

import time
import math
import scrollphathd
speed_factor = 10
try:
    while True:
        scale = (math.sin(time.time() * speed_factor) + 1) / 2
        offset = 0
        for x in range(scrollphathd.width):
            for y in range(scrollphathd.height):
                offset += 1
                color = 0.25 * scale * (offset % 2)
                scrollphathd.pixel(x, y, color)
        scrollphathd.show()
except KeyboardInterrupt:
    scrollphathd.fill(0)

#!/usr/bin/env python

import time
import math

import scrollphathd

speed_factor = 10

try:
    while True:
        scale = (math.sin(time.time() * speed_factor) + 1) / 2
        offset = 0
        for x in range(scrollphathd.width):
            for y in range(scrollphathd.height):
                offset += 1
                color = 0.25 * scale * (offset % 2)
                scrollphathd.pixel(x, y, color)

        scrollphathd.show()

except KeyboardInterrupt:
    scrollphathd.fill(0)
