ultimatepp/uppdev/PainterExamples/Arc.cpp
cxl 511dc40a45 SvgArc example
git-svn-id: svn://ultimatepp.org/upp/trunk@862 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-02-14 20:21:24 +00:00

18 lines
484 B
C++

#include "Examples.h"
void Arc(Painter& sw)
{
sw.Move(400, 200).Arc(400, 200, 200, 100, 0.0, M_PI).Stroke(4, Blue());
sw.Move(400, 400).Arc(400, 400, 100, 100, 0.0, M_PI / 3).Fill(LtCyan()).Stroke(2, Black());
sw.Path(
"M600,350 l 50,-25 "
"a25,25 -30 0,1 50,-25 l 50,-25 "
"a25,50 -30 0,1 50,-25 l 50,-25 "
"a25,75 -30 0,1 50,-25 l 50,-25 "
"a25,100 -30 0,1 50,-25 l 50,-25"
).Stroke(5, Red());
}
INITBLOCK {
RegisterExample("Arc example", Arc);
}