Skip to content

Instantly share code, notes, and snippets.


Christopher Pietsch cpietsch

View GitHub Profile
We couldn’t find that file to show.
View tuio magic trackpad multitouch
import TUIO.*;
TuioProcessing tuio;
PFont font;
int x,y;
void setup () {
size(800, 600);
tuio = new TuioProcessing(this);
cpietsch / HTML5 Logo
Created Apr 20, 2011
just finish my research on how to make a raw html5 version out of my new logo. must say: html5 is bad ass! to get the “multiply” effect in html5 working (used in photoshop for the 3 layers) i had to render each layer “offscreen” by using a renderToCanvas
View HTML5 Logo
cpietsch / spookymultiple.js
Created May 24, 2013
run spooky.js in a recursive mode multiple times
View spookymultiple.js
var Spooky, config, i, run_spooky, scraping, spooky, spooky_is_ready;
Spooky = require('spooky');
config = {
child: {
port: 8081
cpietsch /
Last active Jan 4, 2016
Points on concentrical ring pattern

This example shows the placement of a preset number of points (i) in a concentrical ring pattern. The amount of points from one ring to the next forms an arithmetic progression, whose constant difference („more“) can be varied. By inverting the formula for arithmetic series the necessary number of rings ist calculated for a given amount of points. Afterward the points are arranged equally spaced in the ring pattern. By Manfred & Christopher Pietsch

cpietsch /
Last active Jan 4, 2016
node-webkit screenshot
View gist:851b4497568b12523f1d
var elements ={
return new nmap_element({,
weight:d.weight ? d.weight : 1),
klass:d.class ? d.class : 1)
cpietsch /
Last active Oct 29, 2020
d3.js map with markers

Easy example on how to put marker on a d3.js map.

You got 2 options:

  • using d3.geo.path() which does all the work for you
  • using svg circles and translating them via projection(d.geometry.coordinates)
cpietsch /
Last active Jan 4, 2016
Voronoi Images

Using voronoi tessellation on random points as a surface for images. From here you could distribute the points in a more meaningfull way e.g. using t-SNE or d3.layout.force()

cpietsch / .block
Last active Feb 27, 2016 — forked from mbostock/.block
Pseudo-Dorling Cartogram
View .block
license: gpl-3.0
You can’t perform that action at this time.