soulwire / sketch.js

Cross-Platform JavaScript Creative Coding Framework
MIT License
4.09k stars 430 forks source link

Chaining #18

Open Mottie opened 11 years ago

Mottie commented 11 years ago

I just wanted to add an enhancement request. If you could allow the chaining of canvas functions, that would be awesome :)

Check out LeaVerou's chainvas for inspiration.

soulwire commented 11 years ago

I'm rewriting sketch soon to add some nice sugar and reduce code. I like this idea - it shouldn't add much to the codebase to wrap up prototype methods in a callback that returns the context. I'll probably add it in v1.1 :)

nitriques commented 11 years ago

+1

soulwire commented 11 years ago

Just pushed feature this to it's own branch. Check it out - I'll merge into master once thoroughly tested.

Mottie commented 11 years ago

Awesome! Thanks!