<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: What kinds of interactive drawing technology are practical for web use?</title>
	<atom:link href="http://www.ziatech.com/what-kinds-of-interactive-drawing-technology-are-practical-for-web-use/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ziatech.com/what-kinds-of-interactive-drawing-technology-are-practical-for-web-use/</link>
	<description>technology news in the internet</description>
	<lastBuildDate>Wed, 21 Oct 2009 17:46:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: montag</title>
		<link>http://www.ziatech.com/what-kinds-of-interactive-drawing-technology-are-practical-for-web-use/comment-page-1/#comment-388</link>
		<dc:creator>montag</dc:creator>
		<pubDate>Fri, 03 Jul 2009 21:40:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.ziatech.com/what-kinds-of-interactive-drawing-technology-are-practical-for-web-use/#comment-388</guid>
		<description>You should look into the Canvas element in the HTML 5 spec. It has been supported by FF (1.5+) and Safari since &#039;05ish, and there is a a script that was created by google to effectively give IE canvas support.

Canvas is an html element that actually allows you to use javascript to draw things.

IE for a long time (IE5) has supported VML(vector markup language). The script that the guys at google created is basically a compatability layer, so you can use canvas like normal in all the good browsers, and in IE it gets translated to VML (the example below obviously doesn&#039;t include the IE support).

Sample Code: 
&lt;html&gt;
 &lt;head&gt;
  &lt;script type=&quot;application/x-javascript&quot;&gt;
    function draw() {
      var canvas = document.getElementById(&quot;canvas&quot;);
      if (canvas.getContext) {
        var ctx = canvas.getContext(&quot;2d&quot;);

        ctx.fillStyle = &quot;rgb(200,0,0)&quot;;
        ctx.fillRect (10, 10, 55, 50);

        ctx.fillStyle = &quot;rgba(0, 0, 200, 0.5)&quot;;
        ctx.fillRect (40, 30, 55, 50);
      }
    }
  &lt;/script&gt;
 &lt;/head&gt;
 &lt;body onload=&quot;draw();&quot;&gt;
   &lt;canvas id=&quot;canvas&quot; width=&quot;150&quot; height=&quot;150&quot;&gt;&lt;/canvas&gt;
 &lt;/body&gt;
&lt;/html&gt;</description>
		<content:encoded><![CDATA[<p>You should look into the Canvas element in the HTML 5 spec. It has been supported by FF (1.5+) and Safari since &#8216;05ish, and there is a a script that was created by google to effectively give IE canvas support.</p>
<p>Canvas is an html element that actually allows you to use javascript to draw things.</p>
<p>IE for a long time (IE5) has supported VML(vector markup language). The script that the guys at google created is basically a compatability layer, so you can use canvas like normal in all the good browsers, and in IE it gets translated to VML (the example below obviously doesn&#8217;t include the IE support).</p>
<p>Sample Code:<br />
&lt;html&gt;<br />
 &lt;head&gt;<br />
  &lt;script type=&quot;application/x-javascript&quot;&gt;<br />
    function draw() {<br />
      var canvas = document.getElementById(&quot;canvas&quot;);<br />
      if (canvas.getContext) {<br />
        var ctx = canvas.getContext(&quot;2d&quot;);</p>
<p>        ctx.fillStyle = &quot;rgb(200,0,0)&quot;;<br />
        ctx.fillRect (10, 10, 55, 50);</p>
<p>        ctx.fillStyle = &quot;rgba(0, 0, 200, 0.5)&quot;;<br />
        ctx.fillRect (40, 30, 55, 50);<br />
      }<br />
    }<br />
  &lt;/script&gt;<br />
 &lt;/head&gt;<br />
 &lt;body onload=&quot;draw();&quot;&gt;<br />
   &lt;canvas id=&quot;canvas&quot; width=&quot;150&quot; height=&quot;150&quot;&gt;&lt;/canvas&gt;<br />
 &lt;/body&gt;<br />
&lt;/html&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
