MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / SvgSetColor

Function SvgSetColor

xdevice.cpp:1769–1777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1767// want to use is different from the current color in the SVG file.
1768
1769void SvgSetColor()
1770{
1771 if (gi.kiSvgDes == gi.kiSvgAct)
1772 return;
1773 if (gi.kiSvgAct != kMax)
1774 fprintf(gi.file, "</g>\n");
1775 fprintf(gi.file, "<g style=\"stroke:%s\">\n", SzColorHTML(gi.kiSvgDes));
1776 gi.kiSvgAct = gi.kiSvgDes;
1777}
1778
1779
1780// Output a string of text to an SVG file.

Callers 6

DrawPointFunction · 0.85
DrawSpotFunction · 0.85
DrawBlockFunction · 0.85
DrawDashFunction · 0.85
DrawArcFunction · 0.85
SvgTextFunction · 0.85

Calls 1

SzColorHTMLFunction · 0.85

Tested by

no test coverage detected