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 uuid | |
from glyphsLib import load, GSPath, GSNode, GSLayer | |
from fontTools.varLib.models import VariationModel, normalizeValue | |
import numpy as np | |
from tqdm import tqdm | |
import argparse | |
def interpolate_paths_without(glyph, intermediate_layer, intermediate_location): | |
tags = [axis.axisTag for axis in glyph.parent.axes] |
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
# Physics stolen from: | |
# http://giphy.com/gifs/wave-circle-point-13ePqdDflwat9e | |
def blobPos(pt, r, a): | |
x, y = pt | |
x += cos(a) * r | |
y += sin(a) * r | |
return (x, y) | |
def drawGrid(cells): |