Hello list,
If there is a brave soul willing to play a little bit with the beautiful part of wx I have an idea for a small project
wx.GraphicsPathFromData
Basically this should create a wx.GraphicsPath
from a “d” string using the grammar of SVG:
http://www.w3.org/TR/SVGMobile12/paths.html#PathDataBNF
so instead of
path = gc.CreatePath()
path.MoveToPoint(x1, y1)
path.AddQuadCurveToPoint(x2, y2, x3, y3)
path.AddCurveToPoint(x3, y3, x4, y4, x5, y5)
path.AddQuadCurveToPoint(x6,y6, x7,y7)
path.CloseSubpath
()
one could write
path = wx.GraphicsPathFromData(“M%s Q%s C%s Q%s Z”%points)
this could be very simple if you are skilled with text manipulation (I’m not).
Just thinking out loud…
Peter
···
–
There is NO FATE, we are the creators.
See Google Code Archive - Long-term storage for Google Code Project Hosting.
···
On 10/5/07, Peter Damoc <pdamoc@gmail.com> wrote:
Hello list,
If there is a brave soul willing to play a little bit with the beautiful
part of wx I have an idea for a small project
wx.GraphicsPathFromData
Basically this should create a wx.GraphicsPath from a "d" string using the
grammar of SVG:
Paths – SVG Tiny 1.2
so instead of
path = gc.CreatePath()
path.MoveToPoint(x1, y1)
path.AddQuadCurveToPoint(x2, y2, x3, y3)
path.AddCurveToPoint(x3, y3, x4, y4, x5, y5)
path.AddQuadCurveToPoint(x6,y6, x7,y7)
path.CloseSubpath ()
one could write
path = wx.GraphicsPathFromData("M%s Q%s C%s Q%s Z"%points)
this could be very simple if you are skilled with text manipulation (I'm
not).
You stole Robin’s Time Machine! 
···
On 10/5/07, Chris Mellon arkanes@gmail.com wrote:
On 10/5/07, Peter Damoc pdamoc@gmail.com wrote:
Hello list,
If there is a brave soul willing to play a little bit with the beautiful
part of wx I have an idea for a small project
wx.GraphicsPathFromData
Basically this should create a wx.GraphicsPath from a “d” string using the
grammar of SVG:
http://www.w3.org/TR/SVGMobile12/paths.html#PathDataBNF
so instead of
path = gc.CreatePath()
path.MoveToPoint(x1, y1)
path.AddQuadCurveToPoint(x2, y2, x3, y3)
path.AddCurveToPoint(x3, y3, x4, y4, x5, y5)
path.AddQuadCurveToPoint(x6,y6, x7,y7)
path.CloseSubpath ()
one could write
path = wx.GraphicsPathFromData(“M%s Q%s C%s Q%s Z”%points)
this could be very simple if you are skilled with text manipulation (I’m
not).
See http://code.google.com/p/wxpsvg/
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
–
There is NO FATE, we are the creators.