W3C home > Mailing lists > Public > www-svg@w3.org > February 1999

template objects/paths as formulas

From: Andrew Wooldridge <andreww@netscape.com>
Date: Wed, 24 Feb 1999 10:39:13 -0800
Message-ID: <36D4474D.E4B7D18F@netscape.com>
To: svg <www-svg@w3.org>
It would be nice - I think - if there was a way to use some kind of
mathematical shorthand for building template objects.

What I mean is in section 4.3 you talk about using DEF's to define
objects that arent drawn when defined.
You have a shorthand for doing paths.

Perhaps another way to describe what I mean is instead of defining a
path via a set of points and movetos/linetos I instead specify a
"formula" which the engine knows to transform into path data.

something like:

<path d="x:2x*y;y:y+x">

or something.

I could easily see perhaps using javascript here where:

<path d="javascript:foo()">

where foo() returns a string containing all the linetos movetos, etc.



- Andrew Wooldridge    -     Opinions expressed are my own -
- andreww@netscape.com -     http://people.netscape.com/andreww/
- my Q: 11111          -     my ICQ: 6345881
Received on Wednesday, 24 February 1999 13:30:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:45 UTC