Instantly share code, notes, and snippets.

# agyeiarcher

• Sort options
Created Jan 16, 2018
Rotating Squares
View rotatingsquares.py
 BG = 1500 NSQUARES = 50 SQUARESIZE = 2000 NFRAMES = 96 TOTALROTATION=15
Last active Jan 23, 2018
View TwoBlobs.py
 from random import seed from fontTools.pens.basePen import BasePen rad = width()/4 nFrames=40 class BezierPathPen(BasePen): """FontTools pen -> BezierPath adapter."""
Created Mar 16, 2018
xlrd: Connect to a Database
View xlrd-connect.py
 from xlrd import open_workbook wb = open_workbook('simple.xls') for s in wb.sheets(): print 'Sheet:',s.name for row in range(s.nrows): values = [] for col in range(s.ncols): values.append(s.cell(row,col).value) print ','.join(values) print
Created Sep 9, 2018
View stripedtext.py
 size(500,500) txt="how \n to \n deal?" path = BezierPath() path.text((txt), font="Helvetica", fontSize=150, offset=(2, 380)) NLINES=100 def makelines(amt):
Created Feb 19, 2019
View monochromemondrian.py
 canvas=500 divider=10 # made in drawbot - drawbot.com # ### this is a 'grid builder' that does the math separates the grid into random integers that add up to fill the entire thing. The variance in randomness can be controlled with the multiplier on the variance variable. we will use two arrays from this function, one to build rows, and the other to build columns. I based it off code found here: http://sunny.today/generate-random-integers-with-fixed-sum/ ### def generate_random_integers(_sum, n):
You can’t perform that action at this time.