This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Usage: | |
| scope.py <input_file> | |
| """ | |
| from __future__ import division | |
| import pygame | |
| import audiotools | |
| from docopt import docopt | |
| import itertools | |
| import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import turtle | |
| import math | |
| def lerp(a, b, t): | |
| """Linear interpolation function. returns a when t==0, returns b when t==1 | |
| and linearly interpolates for values inbetween""" | |
| return (a * (1 - t)) + (b * t) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;temp: F | |
| write A >data | |
| write F >exit | |
| write C >loop ;constant | |
| write D 1 ;constant | |
| write E 0 ;constant | |
| loop: index F E A | |
| out F |
NewerOlder