Skip to content

Instantly share code, notes, and snippets.

@dyyybek
dyyybek / glyph_explore.py
Last active April 8, 2017 14:06 — forked from jsbain/glyph_explore.py
glyph_explore.py
import ui,ctypes,string,os
from objc_util import *
UIFont=ObjCClass('UIFont') # This is not used anymore
CAKeyframeAnimation=ObjCClass('CAKeyframeAnimation') # Initialize object to use in PathAnimation class
# Magic
if sizeof(ctypes.c_size_t)==8:
CGFloat=ctypes.c_double
else:
@dyyybek
dyyybek / increments.py
Created June 9, 2017 23:55
GlyphsApp toggle keyboard increments
#MenuTitle: Toggle Keyboard Increments
# -*- coding: utf-8 -*-
__doc__="""
Toogle keyboard increment values.
"""
import GlyphsApp
l = [Glyphs.intDefaults["GSKerningIncrementLow"],Glyphs.intDefaults["GSKerningIncrementHigh"],Glyphs.intDefaults["GSSpacingIncrementLow"],Glyphs.intDefaults["GSSpacingIncrementHigh"]]
@dyyybek
dyyybek / easing.py
Created March 25, 2018 12:50 — forked from th0ma5w/easing.py
Easing Equations in Python (orig by Robert Penner)
# ported from http://www.gizma.com/easing/
# by http://th0ma5w.github.io
#
# untested :P
import math
linearTween = lambda t, b, c, d : c*t/d + b