• ↖ Home
  • Developer´s Guide
    • ↑ Contents
    • Code
    • Embedding
    • Tcl
    • SVG
    • SVG-Import
    • Projects
    • License
    • Index
  • Download
    • Jeszra: Source Code

    • Ruby Wrapper Classes
    • Python Wrapper Classes
    • Lisp Wrapper Classes
  • Books@Lulu.com...
    • Jeszra: Design by Gestalt
    • Jeszra Library: Design by Gestalt

    • Gestalt Items
    • Runtime Library
  • Manual
    • Jeszra Book

    • Tcl Manual
    • Ruby Manual
    • Python Manual
    • Lisp Manual

    • API
  • About
coordszinc
← Chapter 4. SVG- Code Generation →

Name

dumper::coordszinc

Synopsis

          coordszinc coords \
             ?type?
        

Description

Only for »curve« items. Coords are transformed in a path coords definition.

See also »resolve::Zinc closed«. groups reports a point.

The generated coords were wrong for cubic bezier splines. The Zinc convention is c x0 y0 c x1 y1 x y and has to be reassembled to resemble: C x0 y0 x1 y1 x y, done! The s variant is still used in addition.

Clients

coordszinc is being used by ::vgcode::dump-configure-Zinc clients.

Example 4.37. ::vgcode::dump-configure-Zinc using coordszinc

...
# groups might have empty coords.
set coords \
    [$target coords $id]
if { {} != $coords} {
set coords \
    [dumper::coordszinc $coords $type]
   



← ↖ →
instantiate ↑ classStyle
SourceForge Logo

Copyright © 2009–2010 Arndt Roger Schneider