<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
     xmlns:atom="http://www.w3.org/2005/Atom"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:wfw="http://wellformedweb.org/CommentAPI/"
     >
  <channel>
    <title>SVG Wow!</title>
    <link>http://svg-wow.org/blog</link>
    <description></description>
    <pubDate>Mon, 03 Mar 2014 21:47:48 GMT</pubDate>
    <generator>Blogofile</generator>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Rotozoom video</title>
      <link>http://svg-wow.org/blog/2011/03/28/rotozoom-video</link>
      <pubDate>Mon, 28 Mar 2011 23:08:00 EDT</pubDate>
      <category><![CDATA[pattern]]></category>
      <category><![CDATA[animation]]></category>
      <category><![CDATA[video]]></category>
      <guid isPermaLink="true">http://svg-wow.org/blog/2011/03/28/rotozoom-video</guid>
      <description>Rotozoom video</description>
      <content:encoded><![CDATA[
<div id="description">
    <p>
        Homage to <a href="http://en.wikipedia.org/wiki/Future_Crew">Future Crew's</a> 
        <em><a href="http://en.wikipedia.org/wiki/Second_reality">Second Reality</a></em> 
        [<a href="http://www.youtube.com/watch?v=XtCW-axRJV8#t=4m24s">youtube</a>] rotozoomer effect.
    </p>
    <p>
        The music was composed by <a href="http://en.wikipedia.org/wiki/Peter_Hajba">Skaven</a> and 
        <a href="http://en.wikipedia.org/wiki/Jonne_Valtonen">Purple Motion</a> and is from the <a href="http://en.wikipedia.org/wiki/Second_reality">original demo</a>.
    </p>
    <p>
        The demo uses svg patterns and in particular the 
        <a href="http://www.w3.org/TR/SVG11/pservers.html#PatternElementPatternTransformAttribute">patternTransform</a> 
        attribute to create the rotozoom effect.
        It's based on <a href="http://mrdoob.com/lab/javascript/effects/rotozoomer/00/">this demo</a> with kind permission 
        from <a href="http://mrdoob.com">mr doob</a>.
    </p>
    <p>
        The video is old archive footage showing <a href="http://en.wikiquote.org/wiki/William_Henry_Purnell_Blandy">Vice Admiral William H.P. Blandy</a>
        giving a speech before the Bikini nuclear test. A transcription of this videoclip:
    </p>
    <q>
      The bomb will not start a chain-reaction in the water converting it all to gas and letting all 
      the ships on all the oceans drop down to the bottom. It will not blow out the bottom of the sea 
      and let all the water run down the hole. It will not destroy gravity. I am not an atomic playboy, 
      as one of my critics labeled me, exploding these bombs to satisfy my personal whim.
    </q>
    <p>
        This particular video is used since the original demo had a sample with the phrase <q>I am not an atomic playboy</q>.
    </p>
    <p>
        To play the video inside the svg pattern, an attempt is made to use the svg 
        <a href="http://www.w3.org/TR/SVGTiny12/multimedia.html#VideoElement">'video'</a> 
        element, and if that's not supported the fallback is rendering video to a html5 
        <a href="http://dev.w3.org/html5/spec/Overview.html#the-canvas-element">'canvas'</a> and inserting
        the rasterized movie frames into the svg pattern as a normal image. Technically a <a href="http://www.w3.org/TR/SVG11/extend.html#ForeignObjectElement">'foreignObject'</a>
        element with html5 <a href="http://www.w3.org/TR/SVGTiny12/multimedia.html#VideoElement">'video'</a> 
        could also have been used, however no browser was capable of displaying 
        <a href="http://www.w3.org/TR/SVG11/extend.html#ForeignObjectElement">'foreignObject'</a> elements inside a 
        pattern at the time of writing this demo (just before the SVG Open 2010 conference).
    </p>
    <p>
        The music uses the html5 <a href="http://dev.w3.org/html5/spec/Overview.html#the-canvas-element">'audio'</a> element, 
        providing three levels of fallback, first in the original <a href="http://en.wikipedia.org/wiki/ScreamTracker">ScreamTracker</a> format, 
        then as Ogg Vorbis, and as a last option as MP3. The video is also provided in three formats (webm/vp8, mp4/x264, ogg/theora), for wider compatibility.
    </p>
</div>
]]></content:encoded>
    </item>
    <item>
      <title>Pattern1</title>
      <link>http://svg-wow.org/blog/2009/10/04/pattern1</link>
      <pubDate>Sun, 04 Oct 2009 15:00:00 EDT</pubDate>
      <category><![CDATA[pattern]]></category>
      <category><![CDATA[interactive]]></category>
      <guid isPermaLink="true">http://svg-wow.org/blog/2009/10/04/pattern1</guid>
      <description>Pattern1</description>
      <content:encoded><![CDATA[
<div id="description">
    <p>This example illustrates the use of
        the svg <code>&lt;pattern&gt;</code> element. The background rectangle
        is drawn with a simple pattern made of dots and rectangles,
        similar to that found in modern art work and designs
        (e.g., Vasarely, Verner Panton). The "svg" text is painted with
        a similar, inverted pattern.
    </p>
    <p>
        Patterns a common in computer graphics. However, SVG patterns
        are powerful in that they can be defined not only as bitmap
        content, which is the common case in graphics libraries, but
        also as vector content. In other words, the content of an SVG
        pattern can be any arbitrary SVG graphics. Furthermore,
        SVG patterns can be created by scripts.
    </p>
    <p>
        In the initial rendering, there is actually no outline for the
        text, and our perception still makes out the 'svg' shape outline by
        assuming continuity between unconnected path segments. This is
        an <a href="http://en.wikipedia.org/wiki/Optical_illusion">optical illusion</a>
        similar to what happens with the famous <a href="http://en.wikipedia.org/wiki/Kanizsa_triangle">Kanizsa triangle</a>.
    </p>
    <p>
        Note, however, that even though there is no
        real "svg" shape in the visual rendering, a shape is
        actually filled with a different pattern...
    </p>

    <h3>Running the demo</h3>
    <p>
        After loading the demo, move the cursor over the
        rectangle. This will first show the 'SVG' text filled
        with a different pattern. Then, move the cursor over the
        text iteself to show the text in another, colored
        pattern.
    </p>
</div>
]]></content:encoded>
    </item>
  </channel>
</rss>
