4 ms·
Why would I use this rather than the actual canvas API?
by earnubs 16y ago
Why would I use this rather than the actual canvas API?
- m0th87 16y agoBecause the actual canvas API is more limited in what it can do. Basically this was designed to be a lot like processing, without the special DSL; you write your applications using just javascript/coffeescript.
- btmorex 16y agoTo be honest, right now, it's a pretty bare bones wrapper around the actual canvas API. Maybe there's more to come? What can it do that you can't currently do with one or two lines of normal JS?
- m0th87 16y agoMaybe there's more to come, but not much more. It's purposefully bare bones. When I was writing some canvas-based games, everything I looked into felt too heavyweight. Processing.js uses its own DSL. Akihabara was just overwhelming. This is designed to be something you can learn to use in 5 minutes. Hell, you could read the entire source in that time. The base canvas API is even more bare bones though. All you essentially have access to is pixel manipulation, paths and rectangles. This builds on top of it to provide most of what you would see in processing.js.