ultimatepp/examples/PainterExamples/ThinLine.cpp
cxl 6c1b74b09d Painter1.0 to archive
git-svn-id: svn://ultimatepp.org/upp/trunk@855 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-02-12 16:30:42 +00:00

18 lines
355 B
C++

#include "Examples.h"
void ThinPolygon(Painter& sw)
{
sw.Translate(52, 52);
for(int i = 0; i < 2; i++) {
sw.Move(36.000000, 142.000000);
sw.Line(480.000000, 148.000000);
sw.Line(429.000000, 148.000000);
sw.Line(36.000000, 142.000000);
sw.Fill(Black());
}
}
INITBLOCK {
RegisterExample("Thin polygon", ThinPolygon);
}