import math, numpy as np
from hobby import path
SW = 30
SLANT = math.radians(9)
BASE = 500
def shear(p): return np.array([p[0] + (BASE-p[1])*math.tan(SLANT), p[1]])
def letters():
    s1 = path([
        (384, 236, (0.10,-1)),
        (330, 122),
        (220, 106),
        (122, 190),
        (98, 330),
        (160, 465),
        (270, 500),
        (380, 448),
        (460, 335),
        (608, 104, (0.42,-1), 'c', (0.30,1)),
        (676, 330),
        (722, 458),
        (778, 504),
        (870, 478, (1,-0.58)),
    ], tension=1.0)
    s2 = path([
        (236, 352),
        (520, 314),
        (826, 293),
    ])
    return [s1, s2]
def sheared(strokes):
    return [[tuple(shear(p) for p in seg) for seg in s] for s in strokes]
