Changeset 1089:c0f4ebdc0034 in lemon-0.x
- Timestamp:
- 01/19/05 21:19:31 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1485
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lemon/graph_to_eps.h
r1088 r1089 459 459 << " closepath pop pop pop} bind def\n"; 460 460 // x y r cr cg cb 461 os << "/nc { setrgbcolor 2 index 2 index 2 index c fill\n" 462 << " 0 0 0 setrgbcolor dup " 463 << _nodeBorderQuotient << " mul setlinewidth " 464 << 1+_nodeBorderQuotient/2 << " div c stroke\n" 461 os << "/nc { 0 0 0 setrgbcolor 5 index 5 index 5 index c fill\n" 462 << " setrgbcolor " << 1+_nodeBorderQuotient << " div c fill\n" 465 463 << " } bind def\n"; 466 os << "/nsq { setrgbcolor 2 index 2 index 2 index sq fill\n" 467 << " 0 0 0 setrgbcolor dup " 468 << _nodeBorderQuotient << " mul setlinewidth " 469 << 1+_nodeBorderQuotient/2 << " div sq stroke\n" 464 os << "/nsq { 0 0 0 setrgbcolor 5 index 5 index 5 index sq fill\n" 465 << " setrgbcolor " << 1+_nodeBorderQuotient << " div sq fill\n" 470 466 << " } bind def\n"; 471 os << "/ndi { setrgbcolor 2 index 2 index 2 index di fill\n" 472 << " 0 0 0 setrgbcolor dup " 473 << _nodeBorderQuotient << " mul setlinewidth " 474 << 1+_nodeBorderQuotient/2 << " div di stroke\n" 467 os << "/ndi { 0 0 0 setrgbcolor 5 index 5 index 5 index di fill\n" 468 << " setrgbcolor " << 1+_nodeBorderQuotient << " div di fill\n" 475 469 << " } bind def\n"; 476 470 os << "/arrl " << _arrowLength << " def\n"; … … 567 561 << bez.p4.x << ' ' << bez.p4.y << " curveto stroke\n"; 568 562 xy<double> dd(rot(linend-apoint)); 569 dd*=( _edgeWidths[*e]*_edgeWidthScale+_arrowWidth)/563 dd*=(.5*_edgeWidths[*e]*_edgeWidthScale+_arrowWidth)/ 570 564 sqrt(dd.normSquare()); 571 565 os << "newpath " << psOut(apoint) << " moveto "
Note: See TracChangeset
for help on using the changeset viewer.