Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

canto.js: An Improved HTML5 Canvas API (via) Improved is an understatement: canto adds jQuery-style method chaining, the ability to multiple coordinates to e.g. lineTo at once, relative coordinate methods (regular Canvas does everything in terms of absolute coordinates), the ability to use degrees instead of radians, a rounded corner shortcut, a more convenient .revert() method and a simple parser that can understand SVG path expressions! The only catch: it uses getters and setters so won’t work in IE.

Tagged , , , , ,

54 comments

  1. I've put up a git mirror here: http://github.com/jdunck/canto-js

    Jeremy Dunck - 29th July 2010 19:55 - #

  2. What I am searching for is adolescent humans of access in our community pass4sure 642-467. I am alive on ambience up an Advisory Council that will serve as consultants and connectors for the project pass4sure 642-654. I would adulation to acquisition a (or several) motivated, affiliated adolescent humans from the association who affliction about the affair of advantageous sexuality pass4sure 642-971. Adolescent parents would be a plus! Part of the access that Real Life.

    Yeng22 - 30th June 2011 07:10 - #

  3. Cool. I directly changed a new products away from the hashbang syntax and to html5 pushState.

    Motorcycle LED Lights - 15th July 2011 10:15 - #

  4. Cool. I directly changed a new products away from the hashbang syntax and to html5 pushState.

    Motorcycle LED Lights - 15th July 2011 10:16 - #

  5. was a surprised by the post from a xoogler hinting Hadoop was better than google map/reduce - I'd always assumed Google was a few generations ahead. Open/group source is a very nice way to equalize competitive advantage.

    Motorcycle LED Lights - 15th July 2011 10:18 - #

  6. I think it's an absolutely vital tool. I have been intimately familiar now over the past decade with the cases of rendition that the U.S. Government has been involved in. And I can say without a doubt that it has been very successful as far as fred perry outlet producing intelligence that has saved lives. bumper sticker printing || personalized stickers

    poppva1 - 9th August 2011 06:39 - #

  7. The Canto API is based on and is a superset of the Canvas API,and my documentation for it kind of assumes that you're already familiar with the Canvas API... Free Cell Phone Spy

    mariafish - 15th August 2011 08:23 - #

  8. We desire for an excellent work from you and there is no doubt that this is a good work done by you calculatoare second hand Thanks to you for your great effort on this post.

    calculatoare - 30th August 2011 14:45 - #

  9. Hey Simon,I was impressed about your blog. Kind of interesting one. Onkyo TX-NR708 Receiver

    eissa06 - 1st September 2011 04:04 - #

  10. I think the thing that showed his immaturity the most is in his post game comments when he mentioned our payroll, despite the payroll having absolutely NOTHING to do with the situation. That was just him finding something negative to say about a team that is heads and shoulders above his. Visit it and find the latest Quotes here Get Well Soon Quotes || Funny Quotes

    poppva1 - 8th September 2011 06:59 - #

  11. This is really a great article to say the least. I have really enjoyed this information so much mediahuset nova svindel

    david - 10th September 2011 08:45 - #

  12. How would I change the font color when drawing text? I tried canto("tag").fillText("hello", 50, 30).fill({fillStyle: "#ccffaa"}); but text is still black... Interstate Moving Companies

    claire redfield - 12th September 2011 05:37 - #

  13. Nice work! Your post is an excellent example of why I keep coming back to read your excellent quality content that is forever updated. MultiFunction

    kiara - 13th September 2011 08:12 - #

  14. As I am browsing the net,your site came in and happy to have this. Top places to Vacation

    shean06 - 16th September 2011 03:37 - #

  15. Useful information like this one must be kept and maintained so I will put this one on my bookmark list. Thanks for sharinng.... Dissertation Service UK

    simon - 19th September 2011 14:16 - #

  16. Nice effort, very informative, this will help me to complete my task. sending Christmas flowers Vietnam | Christmas flower vietnam

    nabiha - 27th September 2011 10:55 - #

  17. I have been searching for some information about it almost three hours. You helped me a lot indeed and reading this your article I have found many new and useful information about this subject.Used trucks for sale

    Used trucks for sale - 1st October 2011 16:31 - #

  18. That really is a nice HTML 5 Canvas. I enjoyed seeing it.

    Grants for college - 2nd October 2011 03:53 - #

  19. Def. one of the best HTML5 canvas there is - thanks for the link.

    Smokeless cigarettes - 2nd October 2011 03:55 - #

  20. Thanks for your sharing. I will necessarily add it in the selected works and I will visit this site. Sioux Falls cars for sale

    jazz - 4th October 2011 07:20 - #

  21. Thank you so much for sharing this with people like me who really do not know much about the topic. EDUCATION

    simmi - 6th October 2011 06:30 - #

  22. Now, it's my belief that Python is a lot easier than to teach to students programming and teach them C or C++ or Java at the same time because all the details of the languages are so much harder. Other scripting languages really don't work very well there either.

    Property Forum Singapore - 6th October 2011 18:38 - #

  23. how to Set goals Thanks for posting this Simon. Informative as always. Short term goals

    mike - 10th October 2011 02:51 - #

  24. This was a special and helpful article. I really do appreciate this information so much. This was so cool. www.bingostreet.com

    Lauren Stokes - 10th October 2011 20:40 - #

  25. Wow that was odd. I just wrote an really long comment but after I clicked submit my comment didn't show up. Grrrr... well I'm not writing all that over again. Anyhow, just wanted to say excellent blog! Weight Loss Program Reviews

    Janice Whisenton - 12th October 2011 22:01 - #

  26. the details of the languages are so much harder. Other scripting languages really don't work very well there either.x ray technician

    david - 13th October 2011 09:18 - #

  27. This is awesome, exactly what I was trying to figure out :) lane recliner chairs recliners for sale swimming pools

    finns - 16th October 2011 09:52 - #

  28. I was looking for some information on nearly three hours. You have helped me a lot actually, and read your article, I found many new and useful information on the post. Visit my Website it is pertinent to the Exam Testking 646-205 || Testking 70-640

    randy ortan - 17th October 2011 13:25 - #

  29. This was really a great and helpful article. I have really enjoyed reading this so much. Wall Stickers

    monique27a - 17th October 2011 20:00 - #

  30. nice post, i really like this post, because of information... clear window stickers | sticker printing

    custom folders printing - 17th October 2011 23:56 - #

  31. very cool the post was great <a rel="follow" href="http://fatbikez.com" rel="nofollow" rel="nofollow">motorcycle parts</a>

    chuck - 18th October 2011 02:06 - #

  32. Motorcycle parts all was very cool

    chuck - 18th October 2011 02:08 - #

  33. Motorcycle parts - from what i heard everything is going great

    bigrobert - 18th October 2011 02:10 - #

  34. I'd always assumed Google was a few generations ahead. Open/group source is a very nice way to equalize competitive advantage.pellet processing

    xzdas - 19th October 2011 02:08 - #

  35. Hi. I directly changed a new products away from the hashbang syntax and to html5 pushState...

    no fax payday loans - 19th October 2011 08:37 - #

  36. I think what you showed his lack of maturity is in his post-game comments when he spoke of our payroll, payroll despite having absolutely nothing to do with the situation. That was about finding something negative to say about a team that is head and shoulders above his. Visit and find the latest events here semenax

    Martan - 19th October 2011 14:30 - #

  37. This was a special article and helpful. I really appreciate this information so much. This was so cool binary options broker

    yasirra - 24th October 2011 14:21 - #

  38. same time because all the details of the languages are so much harder. Other scripting languages really don't work very well there either.ring die

    nidayede - 25th October 2011 01:59 - #

  39. hi it is exactly that which i need

    fbstatus book - 25th October 2011 06:03 - #

  40. The performance of the South to justify thinking ContinuationClean current practices, pour ou changer take responsibility for their own reality AUSein practices available resources ..! Hereford escorts

    Martan - 25th October 2011 21:06 - #

  41. Post is nicely written and it contains many good things for me. I am glad to find your impressive way of writing the post. Now it become easy for me to understand and implement the concept. Thanks for sharing the post. short funny jokes

    flapwer - 26th October 2011 04:18 - #

  42. Its not the case that reader must be completely agreed with author's views about article. So this is what happened with me, anyways its a good effort, I appreciate it. Thanks Stock Music

    flapwer - 26th October 2011 04:36 - #

  43. Loved to read your blog. I would like to suggest you that traffic show most people read blogs on Mondays. So it should encourage blogger to write new write ups over the weekend primarily. physical therapy assistant degree

    Sam Paul - 26th October 2011 17:41 - #

  44. This was a fabulous post - something I have not seen the likes of before. It was compelling and well beyond interesting. So much so that I have a difficult time coming up with an appropriate word to describe it - so please forgive me. Suffice it to say the post has impacted me in ways I could not have expected.

    pellet stoves - 26th October 2011 19:38 - #

  45. Well, it is a big finish as you told in this article. It won't be so much efforts if we need it all the helped

    chopard watches - 27th October 2011 12:52 - #

  46. Always I'd Google ASSUMED WAS A Few generations ahead. Open / group source IS a very nice way to equalize competitive advantage essays term papers

    yasir - 29th October 2011 18:07 - #

  47. was a surprised by the post from a xoogler hinting Hadoop was better than google map/reduce - I'd always assumed Google was a few generations ahead. Open/group source is a very nice way to equalize competitive advantage.

    what is normal blood pressure - 31st October 2011 02:29 - #

  48. I currently using a lot of canvas on a project and it can be a bit of a pain, as it is very low level. So I would like to try out the library, but I think lack of Internet Explorer support is a real deal breaker. SVG probably would have been a better fit for my project, but lack of support in Internet Explorer, forced me into using explorer-canvas.js. So far I am really impressed with how well this successfully emulates a real canvas. I do like the look of the library, the svgpath function is particularly useful. hot christmas gifts 2011 top gifts for men 2011

    nathan gadgets - 31st October 2011 10:23 - #

  49. The post is written in very a good manner and it entails many useful information for me. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post. Silent Hill Downpour

    Groundless - 1st November 2011 05:47 - #

  50. I am not sure where you are getting your information, but great topic. I needs to spend some time learning much more or understanding more. Thanks for magnificent info I was looking for this information for my mission. free cell phone spy software

    laniza coper - 1st November 2011 07:11 - #

  51. This is a nice blog. Good clean UI and nice informative blog. I Will Be Coming Back Soon, Thanks for posting Some Great ideas.Philadelphia accident lawyer

    ansari - 2nd November 2011 11:18 - #

  52. nice one article

    dc Credit union - 3rd November 2011 12:11 - #

  53. Useful information like this one must be kept and maintained so I will put this one on my bookmark list. Thanks!!

    ювелирный интернет магазин - 8th November 2011 07:11 - #

  54. Nice post, good to know that this Canvas topic is being covered also in this web site.
    Thanks for taking time to discuss this, keep up with this interesting work.
    Good job !
    <a href="http://duo.nanoverso.com/2010/04/estatuto-do -idoso.html">estatuto do idoso</a>

    Namaste - 9th November 2011 04:42 - #

Comments are closed.
A django site