Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
This file contains 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
size(1000,400) | |
def scribble(pos, width, amplitude): | |
save() | |
x, y = pos | |
start = x | |
strokeWidth(1) | |
fill(None) | |
stroke(1-random()*0.2,0,0) |
This file contains 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
# coding: utf-8 | |
# replacement for robofab's SelectFont | |
import os | |
import vanilla | |
from mojo.roboFont import CurrentFont, CurrentGlyph, AllFonts, OpenWindow | |
class SelectFontWindow(object): | |
def __init__(self, callback=None): | |
self.fonts = {} | |
self.callback = callback |
This file contains 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
""" | |
Assuming you have | |
a UFO open in RoboFont | |
a current glyph selected | |
and furthermore that | |
this glyph is part of a git repository | |
and that you have done some work on it | |
and would like to compare the current state in robofont |
This file contains 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
""" | |
Apply any filter on any view. | |
CIFilter reference: https://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CoreImageFilterReference/index.html#//apple_ref/doc/filter/ci/CIAccordionFoldTransition | |
""" | |
from mojo.UI import CurrentSpaceCenter | |
from AppKit import * |
NewerOlder