ultimatepp/examples/PainterExamples/ThinLine.cpp
cxl b556ccca12 New painter examples
git-svn-id: svn://ultimatepp.org/upp/trunk@869 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-02-15 22:34:47 +00:00

17 lines
351 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);
}