Skip to content

Instantly share code, notes, and snippets.

View sovichet's full-sized avatar

Sovichet Tep sovichet

View GitHub Profile
@mjlagattuta
mjlagattuta / fixBrackets.py
Last active March 10, 2022 04:31
Setup glyphs file with bracket layers for fontmake build, and generate a python file to run on the final ttf to add the feature vars
# Copyright 2019 Michael LaGattuta
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@thundernixon
thundernixon / drawbot-example-hex2rgb-call.py
Last active January 25, 2020 04:36
Use normal hex values in Drawbot
### Example of using the method in a script for Drawbot
# import the method from hexToRgb.py (have hexToRgb.py in the same folder as your script)
# alternatively, you can also just include the whole method in your code
from hex2rgb import hex2rgb
# have a hex color in mind (works with or without the # sign)
myHex = "#2F3137"
# use an asterisk to feed the tuple (R,G,B) result in place of any usual drawbot color value