Skip to content

Instantly share code, notes, and snippets.

@robotlolita
Created February 26, 2011 22:33
Show Gist options
  • Save robotlolita/845695 to your computer and use it in GitHub Desktop.
Save robotlolita/845695 to your computer and use it in GitHub Desktop.
stuff = ->
## I instinctively skip those when I'm reading the code
surround_left = -> .59 * surround + .525 * (1 - surround)
surround_right = -> .69 * (surround - 1) + .59 * (2 - surround)
## And go straight here
c = if surround < 1 then surround_left else surround_right
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment