This file contains 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
#!/usr/bin/env python | |
""" | |
moonphase.py - Calculate Lunar Phase | |
Author: Sean B. Palmer, inamidst.com | |
Cf. http://en.wikipedia.org/wiki/Lunar_phase#Lunar_phase_calculation | |
""" | |
import math, decimal, datetime | |
dec = decimal.Decimal |
This file contains 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
#!/usr/bin/env python | |
import numpy as np | |
import cv2 | |
from time import sleep | |
# create blank image - y, x | |
img = np.zeros((600, 1000, 3), np.uint8) | |
# setup text |