Skip to content

Commit

Permalink
Fix to SVG output (actually undoes bug introduced in fd7aebc )
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvist committed Jun 4, 2014
1 parent 28ced59 commit 1716acf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions starrynight.c
Original file line number Diff line number Diff line change
Expand Up @@ -744,10 +744,10 @@ void outputlattice_svg(char * filename)
for (i=0;i<X;i++)
for (k=0;k<Y;k++)
fprintf(fo," <line x1=\"%f\" y1=\"%f\" x2=\"%f\" y2=\"%f\" style=\"stroke:rgb(%d,%d,%d);stroke-width:0.17\" marker-end=\"url(#triangle)\" />\n",
i+0.5 + 0.4*lattice[k][i].y,
k+0.5 + 0.4*lattice[k][i].x,
i+0.5 - 0.4*lattice[k][i].y,
k+0.5 - 0.4*lattice[k][i].x,
i+0.5 - 0.4*lattice[k][i].x,
k+0.5 - 0.4*lattice[k][i].y,
i+0.5 + 0.4*lattice[k][i].x,
k+0.5 + 0.4*lattice[k][i].y,
(int)((-lattice[k][i].z+1.0)*127.0),
(int)((-lattice[k][i].z+1.0)*127.0),
(int)((-lattice[k][i].z+1.0)*127.0)
Expand Down

0 comments on commit 1716acf

Please sign in to comment.