Interactive Vector-Graphics in the Browser

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Interactive Vector-Graphics in the Browser - Presentation Transcript

    1. Interactive Vector Graphics in the Browser
        • Without Plugin
        • HTML, VML, SVG, Canvas
        • With Plugin
        • Flash, Java, Silverlight
    2. Without Plugin
      • HTML-“hacking“
        • <div> with CSS, images
      • Mark-up languages
        • VML and SVG
      • Instruction-oriented
        • Canvas, dojo.gfx, and others
    3. Graphics using HTML
      • <div> , CSS und position:absolute;
        • Walter Zorn http://www.walterzorn.de/jsgraphics/jsgraphics.htm
    4. Graphics using HTML
      • Combinations with server-side graphics
        • http://thinkature.com/
    5. VML
      • Vector Markup Language
      • by Microsoft and Macromedia
      • Internet Explorer
      • embedded in HTML
    6. VML code example
        • <html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot;>
        • <body>
        • <v:oval style=&quot;position: absolute; left: 0; top: 0;
        • width: 100px; height: 50px;
        • behavior: url(#default#VML);&quot;
        • fillcolor=&quot;blue&quot; stroked=&quot;false&quot;>
        • </v:oval>
        • </body>
        • </html>
    7. VML example
      • Google Maps drawings in IE
        • http://maps.google.com/maps?f=d&saddr=M%C3%BCnchen&daddr=Berlin&hl=de&geocode=&mra=ls&sll=50.247205,12.304688&sspn=5.178193,11.206055&ie=UTF8&ll=50.34546,12.304688&spn=5.167523,11.206055&z=7
    8. SVG
      • Scalable Vector Graphics
      • specified by W3C (VML- and PGML-Authors involved)
      • Native in FireFox, Opera, Safari, etc.
      • Plugin for IE by Adobe
    9. SVG code example
      • <?xml version=&quot;1.0&quot;?>
      • <!DOCTYPE svg PUBLIC &quot;-//W3C//DTD SVG 1.1//EN&quot;
      • &quot;http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd&quot;>
      • <svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;100&quot; height=&quot;50&quot;>
      • <ellipse cx=&quot;50&quot; cy=&quot;25&quot; rx=&quot;50&quot; ry=&quot;25&quot; style=&quot;fill: blue;&quot; />
      • </svg>
    10. SVG examples
      • Google Maps in all „other“ browsers
        • http://maps.google.com/maps?f=d&saddr=M%C3%BCnchen&daddr=Berlin&hl=de&geocode=&mra=ls&sll=50.247205,12.304688&sspn=5.178193,11.206055&ie=UTF8&ll=50.34546,12.304688&spn=5.167523,11.206055&z=7
      • RapidRabb.it prototype editor
        • http://rapidrabb.it/preview
    11. Canvas
      • Originally by Apple, now in HTML 5
      • Firefox, Opera, Safari, etc.
        • Plugin for IE by Novell
        • Canvas to VML using JavaScript by Google
      • Canvas drawing instructions, no DOM API
      • var canvas = document.getElementById('tutorial');
      • var ctx = canvas.getContext('2d');
      • ctx.beginPath();
      • ctx.arc(75,75,50,0,Math.PI*2,true); // Outer circle
      • ctx.moveTo(110,75);
      • ctx.arc(75,75,35,0,Math.PI,false); // Mouth (clockwise)
      • ctx.moveTo(65,65);
      • ctx.arc(60,65,5,0,Math.PI*2,true); // Left eye
      • ctx.moveTo(95,65);
      • ctx.arc(90,65,5,0,Math.PI*2,true); // Right eye
      • ctx.stroke();
      (Sample from mozilla.org)
    12. Canvas
      • Problems, e.g.:
        • Developed for static images
        • Animations through frames
        • Catching events e.g. clicks
      • Strengths
        • Fast
        • Extensions (3D, ...)
    13. Canvas Examples
      • 3D movie
        • http://antisocial.demozoo.org/
      • Ego shooter
        • http://www.abrahamjoffe.com.au/ben/canvascape/textures.htm
      • Mind mapping
        • http://mindmeister.de
      • Yahoo Pipes
        • http://pipes.yahoo.com/
    14. Cross-browser JavaScript Libs
      • svg2vml http://code.google.com/p/svg2vml/
      • ExtJS Extension http://code.google.com/p/vector-graphics-ext
      • Dojo GFX http://dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dijit-and-dojo/drawing-gfx
      • gwt-canvas http://code.google.com/p/gwt-canvas/
    15. With Plugin
      • Flash
        • Standard Flash and others
        • Flex http://www.adobe.com/products/flex/
        • OpenLazlo http://www.openlaszlo.org/
      • Java
        • Standard-Java, Java with OpenGL,
        • JavaFX http://javafx.com/
      • Silverlight
    16. Silverlight
      • Plugin by Microsoft
        • Win and Mac, moonlight for Linux
        • IE, Firefox und Safari, Opera announced
      • XAML for vector graphics and control elements
        • similiar to SVG
        • supports parts of Windows Presentation Foundation
      • IDE for distinct roles in development
    17. Further Sources
      • VML and SVG code examples: http://de.wikipedia.org/wiki/Vector_Markup_Language
      • Canvas code example:  http://developer.mozilla.org/en/Canvas_tutorial/Drawing_shapes

    + tectec, 8 months ago

    custom

    1931 views, 0 favs, 1 embeds more stats

    How do google maps' or yahoo pipes' interactive bro more

    More Info

    © All Rights Reserved

    Go to text version
    • Total Views 1931
      • 1930 on SlideShare
      • 1 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 9
    Most viewed embeds
    • 1 views on http://rapidrabb.it

    more

    All embeds
    • 1 views on http://rapidrabb.it

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as innappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel

    Categories