Skip to content

Instantly share code, notes, and snippets.

@whistlegraph
Created April 10, 2016 14:28
Show Gist options
  • Save whistlegraph/285cf165250f5de7dc8cc01b077df386 to your computer and use it in GitHub Desktop.
Save whistlegraph/285cf165250f5de7dc8cc01b077df386 to your computer and use it in GitHub Desktop.
def('softy', function (act) {
'use strict';
act.on('prep tool', function (p) {
act.out('softy.graph.prep', p);
act.out('touch surf', {p: p, and: function (opts) {
act.out('softy.graph.spot', opts);
}});
});
act.on('drag tool', function (p) {
act.out('scratch surf', {p: p, and: function (opts) {
act.out('softy.graph.add', opts);
}});
});
act.on('lift tool', function (id) {
act.out('softy.graph.remove', id);
});
act.pipe('softy color', 'softy.graph.color');
act.pipe('softy size', 'softy.graph.size');
act.pipe('softy fuzz', 'softy.graph.fuzz');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment