Created
          June 27, 2012 07:57 
        
      - 
      
- 
        Save forresto/3002307 to your computer and use it in GitHub Desktop. 
    meemoo demo: new math module evaluates arbitrary equations
  
        
  
    
      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
    
  
  
    
  | { | |
| "info": { | |
| "author": "meemoo", | |
| "title": "meemoo module: math", | |
| "description": "testing new math module", | |
| "parents": [ | |
| "https://gist.github.com/3002307" | |
| ], | |
| "url": "math-module" | |
| }, | |
| "nodes": [ | |
| { | |
| "src": "http://forresto.github.com/meemoo-math/math.html", | |
| "x": 401, | |
| "y": 66, | |
| "z": 0, | |
| "w": 211, | |
| "h": 125, | |
| "state": { | |
| "x": 0.01, | |
| "y": 0, | |
| "equation": "(y+x)%1" | |
| }, | |
| "id": 2 | |
| }, | |
| { | |
| "src": "http://forresto.github.com/meemoo-modules/color-hsla.html", | |
| "x": 803, | |
| "y": 69, | |
| "z": 0, | |
| "w": 157, | |
| "h": 173, | |
| "state": { | |
| "hue": 0.1, | |
| "saturation": 0.5, | |
| "lightness": 0.5, | |
| "alpha": 1 | |
| }, | |
| "id": 3 | |
| }, | |
| { | |
| "src": "http://forresto.github.com/meemoo-modules/metronome.html", | |
| "x": 102, | |
| "y": 70, | |
| "z": 0, | |
| "w": 136, | |
| "h": 113, | |
| "state": { | |
| "ms": 100, | |
| "start": "!" | |
| }, | |
| "id": 4 | |
| }, | |
| { | |
| "src": "http://forresto.github.com/meemoo-math/math.html", | |
| "x": 200, | |
| "y": 599, | |
| "z": 0, | |
| "w": 271, | |
| "h": 129, | |
| "state": { | |
| "y": 200, | |
| "equation": "sin(x*2*PI)*y" | |
| }, | |
| "id": 5 | |
| }, | |
| { | |
| "src": "http://forresto.github.com/meemoo-image/circle.html", | |
| "x": 802, | |
| "y": 306, | |
| "z": 0, | |
| "w": 157, | |
| "h": 186, | |
| "state": { | |
| "x": 25, | |
| "y": 25, | |
| "r": 25, | |
| "start": 0, | |
| "end": 1, | |
| "color": "rgba(50%, 50%, 50%, 1)", | |
| "stroke": "rgba(0,0,0,1)", | |
| "strokewidth": 0 | |
| }, | |
| "id": 6 | |
| }, | |
| { | |
| "src": "http://forresto.github.com/meemoo-image/transform.html", | |
| "x": 757, | |
| "y": 568, | |
| "z": 0, | |
| "w": 346, | |
| "h": 356, | |
| "state": { | |
| "scale": 1, | |
| "translateX": 0, | |
| "translateY": 0, | |
| "rotate": 0, | |
| "clearEvery": false | |
| }, | |
| "id": 7 | |
| }, | |
| { | |
| "src": "http://forresto.github.com/meemoo-math/math.html", | |
| "x": 200, | |
| "y": 400, | |
| "z": 0, | |
| "w": 256, | |
| "h": 115, | |
| "state": { | |
| "y": 100, | |
| "z": 5, | |
| "equation": "cos(x*z*2*PI)*y" | |
| }, | |
| "id": 8 | |
| } | |
| ], | |
| "edges": [ | |
| { | |
| "source": [ | |
| 2, | |
| "equals" | |
| ], | |
| "target": [ | |
| 3, | |
| "hue" | |
| ] | |
| }, | |
| { | |
| "source": [ | |
| 2, | |
| "equals" | |
| ], | |
| "target": [ | |
| 2, | |
| "y" | |
| ] | |
| }, | |
| { | |
| "source": [ | |
| 4, | |
| "beat" | |
| ], | |
| "target": [ | |
| 2, | |
| "evaluate" | |
| ] | |
| }, | |
| { | |
| "source": [ | |
| 2, | |
| "equals" | |
| ], | |
| "target": [ | |
| 5, | |
| "x" | |
| ] | |
| }, | |
| { | |
| "source": [ | |
| 3, | |
| "color" | |
| ], | |
| "target": [ | |
| 6, | |
| "color" | |
| ] | |
| }, | |
| { | |
| "source": [ | |
| 6, | |
| "image" | |
| ], | |
| "target": [ | |
| 7, | |
| "image" | |
| ] | |
| }, | |
| { | |
| "source": [ | |
| 5, | |
| "equals" | |
| ], | |
| "target": [ | |
| 7, | |
| "translateY" | |
| ] | |
| }, | |
| { | |
| "source": [ | |
| 2, | |
| "equals" | |
| ], | |
| "target": [ | |
| 8, | |
| "x" | |
| ] | |
| }, | |
| { | |
| "source": [ | |
| 8, | |
| "equals" | |
| ], | |
| "target": [ | |
| 7, | |
| "translateX" | |
| ] | |
| } | |
| ] | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment