Created
April 10, 2016 14:28
-
-
Save whistlegraph/285cf165250f5de7dc8cc01b077df386 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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