Permalink
Browse files

Add: color example

  • Loading branch information...
1 parent a1010f8 commit 43a8d0c42f57aa2274088bbc928e3c4f8f2f3c26 @tmpvar committed Jul 10, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 README.md
View
@@ -24,6 +24,9 @@ TODO: of course this will go to npm, very soon.
`tpad(index).color('#fff');` - change the color of an individual pad
+`tpad(0).on('pressure', function(p) { p.color(color().hsv((p.value/18000)*360, 100, 100)); }}` - change the color of pad[0] based on the amount of pressure applied
+
+
##### pre-baked functionality
_very_ basic animation

0 comments on commit 43a8d0c

Please sign in to comment.