W3C home > Mailing lists > Public > www-smil@w3.org > January to March 2007

Re: Drawing a line in SMIL

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 12 Feb 2007 17:11:48 +1100
To: www-smil@w3.org
Message-ID: <20070212061148.GA27952@arc.mcc.id.au>

Hi Roger.

Roger Chapman:
> I'm still learning SMIL, so I apologize if this is a naive question,
> but is it possible to animate drawing a line in SMIL?

In a SMIL document, I’m not sure.  But in an SVG document, yes, for
example:

  <svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
    <line x1="50" y1="50" x2="150" y2="150">
      <animate attributeName="y1" to="150" begin="0s" dur="2s"/>
      <animate attributeName="y2" to="50" begin="0s" dur="2s"/>
    </line>
  </svg>

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au
Received on Monday, 12 February 2007 06:12:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:26 UTC