Summary edit
SVG-like rendering for the canvasAttributes edit
- Name
- tkpath
- Author
- Mats Bengtsson
- de-facto maintainer
- Andrew Shadura
- Website
- http://sourceforge.net/projects/tclbitprint
- License
- BSD
- Documentation
- tkpath-0.1
- Categories
- GUIs
- Link
- https://bitbucket.org/andrew_shadura/tkpath
- Link
- http://sourceforge.net/projects/tclbitprint
- Link
- http://www.w3.org/TR/SVG11/
- Link
- http://www.visit.se/~matben/
- Link
- http://cairographics.org/
- Link
- http://www.androwish.org/
- Link
- http://chiselapp.com/user/rene/repository/tkpath
Examples edit
- Examples of drawing with Tkpath
- arjen 2013-04-11 06:30:07: I have been experimenting with Tkpath a bit.
- tkpath - clock
- illustraties antialias functionality on an analog clock
Description edit
Tkpath implements path drawing modeled after SVG. It is very flexible and reproduces all standard drawing canvas items. Features include: opacity, antialiasing, gradient fills, affine transformations, and fill rules. Backends include: CoreGraphics on MacOSX, GDI on Win32, GDI+ on WinXP, Cairo on X11, and Tk drawing as a fallback. Not all backends support all features.Releases edit
- 0.2
- Roy Terry: Released on 2006-07-16. Includes numerous more specialized canvas items sharing the visual traits of the original "path" item and also includes radial patterned gradients. No new release files are available at this time but cvs holds pre-built binaries. See Announce, Tkpath 0.2
, 2006-07-16
- 0.2.2
- adds a ptext text item which supports the same drawing model as the other tkpath items.
- 0.2.8
- announed in 2008-01, is a Tk 8.5 only release (no backward compatibility).
- 0.3.0
- see the section below
- 0.3.1
- a response to the issues discussed in New Canvas, tkpath 0.3.0 release
, 2008-07-17
Release: 0.3.0 edit
Tkpath 0.3.0 provides a new canvas widget that is supposed to be 100% compatible with tk::canvas. My major motivation for creating this package was to make something that maps well with SVG
- A number of new item types with options that map easily to SVG objects.
- A display tree hierarchy with some fancy option inheritance.
- circle
- ellipse
- group
- path
- pimage
- pline
- polyline
- ppolygon
- prect
- ptext



Current State edit
RZ 2018-05-18 new repository at http://chiselapp.com/user/rene/repository/tkpath

The current maintainer of the project seems to be Andrew Shadura. (The original developer, Mats Bengtsson passed away in 2008.) Andrew's repo is available here

I got no reply under Ask and it shall be given so try again.2013-04-13: I'm trying to install tkpath on Windows XP - I have tcl8.6 installed and works. The instructions say 'download from cvs and install'. I downloaded the binaries from cvs, I put it in /tcl and it is not accessible. The demos don't work. The code doesn't work. How did other users install it? When I know I will update the instructions to be useful.ekd123 tkpath has been in TEApot IIRC.
Discussion edit
yyamasak 2012-06-05: I tried 0.3.1 using an analog clock sample (tkpath - clock). I had to redraw clock hands explicitly by calling "event generate .uhr <Configure>". It seems "coord" canvas subcommand does not perform redrawing.[andras] 2014-07-31: If you are looking for advanced examples, some current users of TkPath:- Georgios Petasis' Ellogon
application (Ellogon 1.9.x uses TkPath 0.2.6)
- L2Ork's PD
project, their repo includes a TkPath fork (link
).
- Jonas Ferry's TclRobots project (link
). TkPath binaries are checked in under lib/tkpath.

[petersteier] - 2015-09-09 14:45:34I tried out to install the package under Ubuntu Server 14.04 LTS (Tcl patchlevel 8.6.1, with apt-get install tcl-dev, tk-dev, libcairo2-dev); a version that worked is from L2Ork's PD project (see above): [2], look in sub-directory pd. It displays the version number 0.3.3. I did not try the repos mentioned here (but was distracted by lots of other wrong information on the web). With ActiveTcl 8.6.1 teacup install does not find tkpath, teacup get downloads several versions, none of which can be installed. Either the config-pathes are wrong, the libcairo2 is incompatible during compiling, or precompiled ELFs are for 32 bit. Also the "original(?)" http://sourceforge.net/projects/tclbitprint/files/

[pup] - 2015-09-15 10:58:17canvas_path postscript -file /tmp/tmp123.ps cannot work.RZ AFAIK postscript output is not implemented in tkpath. If you stick with normal tk canvas items you can use pdf4tcl to print the canvas items. Tkpath items (path, ppolygon etc.) are not (currently?) supported.