malfunction in svg output

Let the developers know what you think of the software and what can be done to either improve the CFDG language or the Context Free program.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
Posts: 1
Joined: Tue Jan 13, 2009 10:54 pm
Location: germany

malfunction in svg output

Post by PK »


I just discovered cfdg few days ago. It's great - I downloaded v. 2.2 Beta3 for Linux.

Just I stumbled upon a malfunction in svg output: Triangles become "penrose darts".


Code: Select all

startshape Start
rule Start {TRIANGLE {}}
svg output with 2 comments:

Code: Select all

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
<!--               why not 500px?               -->
<svg width="500mm" height="500mm"
     xmlns="" version="1.1">
  <g transform="matrix(3.779528 0 0 -3.779528 0 1889.76)" fill="none" stroke="none">
<!--                                   this is superfluous: 0,0 -->
    <polygon points="0,0.57735 -0.5,-0.288675 0.5,-0.288675 0,0"
             fill="#000000" fill-rule="nonzero"
             transform="matrix(       484          0          0        484        250  180.14062)"/>

User avatar
Site Admin
Posts: 875
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California

Post by MtnViewJohn »

Thanks. I will fix triangles and change the units from millimeters to pixels.

Post Reply