Forked from Michael Musgrove's Pen SVG Stroke Text Effect.
Forked from Michael Musgrove's Pen SVG Stroke Text Effect.
A Pen by Stephen Hawkes on CodePen.
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
from PIL import Image, ImageDraw | |
im = Image.open('img_original.png') | |
def interpolate(f_co, t_co, interval): | |
det_co =[(t - f) / interval for f , t in zip(f_co, t_co)] | |
for i in range(interval): |
'use strict'; | |
const X = [0.1, 0.5, 0.9, 1.3, 1.7]; | |
const Y = [-2.3026, -0.69315, -0.10536, 0.26236, 0.53063]; | |
const x = 0.8; | |
// const n = 3; | |
// var splines = new Array(X.length).fill({a:null,b:null,c:null,d:null,x:null}); | |
var splines = []; | |
for (let i =0; i < X.length; i++){ | |
splines.push({a:null,b:null,c:null,d:null,x:null}); |
<!doctype html> | |
<html> | |
<title>Flatten.js, General SVG Flattener</title> | |
<head> | |
<script> | |
/* | |
Random path and shape generator, flattener test base: http://jsfiddle.net/xqq5w/embedded/result/ | |
Basic usage example: http://jsfiddle.net/Nv78L/3/embedded/result/ |
Forked from Michael Musgrove's Pen SVG Stroke Text Effect.
Forked from Michael Musgrove's Pen SVG Stroke Text Effect.
A Pen by Stephen Hawkes on CodePen.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
//Custom Theme test | |
// Colors | |
// ------------------------------- | |
$custom: #057b6c !default; | |
// Buttons | |
// ------------------------------- | |
$button-custom-bg: $custom !default; |
#!/usr/bin/env python3 | |
import sys | |
import fontforge | |
def main(file): | |
for font in fontforge.fontsInFile(file): | |
f = fontforge.open(u'%s(%s)' % (file, font)) | |
f.generate('%s.ttf' % font) |
#!/usr/bin/env python | |
"""Convert an SVG file to a PNG file.""" | |
from argparse import ArgumentParser | |
import subprocess | |
import os.path | |
def main(): |
function string_to_slug (str) { | |
str = str.replace(/^\s+|\s+$/g, ''); // trim | |
str = str.toLowerCase(); | |
// remove accents, swap ñ for n, etc | |
var from = "àáäâèéëêìíïîòóöôùúüûñç·/_,:;"; | |
var to = "aaaaeeeeiiiioooouuuunc------"; | |
for (var i=0, l=from.length ; i<l ; i++) { | |
str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i)); | |
} |
[ Launch: Pattern grid - raster ] 4710427 by zeffii[ Launch: Pattern grid - raster ] 4659977 by roundrobin[ Launch: Pattern grid - 2 ] 4659021 by roundrobin[ Launch: Pattern grid - stripes ] 4657513 by roundrobin[ Launch: Pattern grid - wave ] 4647105 by roundrobin[ Launch: Pattern grid - elector ] 4647086 by roundrobin[ Launch: Pattern grid - elector ] 4647080 by roundrobin[ Launch: Pattern grid - 50-50 circles ] 4647076 by roundrobin[ Launch: Pattern grid - double quater circles ] 4647019 by roundrobin[ L