ultimatepp/uppdev/PainterExamples/Radial.cpp
cxl 8c8f456479 PainterExamples...
git-svn-id: svn://ultimatepp.org/upp/trunk@896 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-02-23 15:44:59 +00:00

20 lines
431 B
C++

#include "Examples.h"
void Radial(Painter& sw)
{
sw.Circle(400.5, 400.5, 200)
.Fill(400.5, 400.5, Blue(), 200, LtRed())
.Stroke(1, Black());
}
void FocusRadial(Painter& sw)
{
sw.Circle(400.5, 400.5, 200)
.Fill(300, 300, Blue(), 400.5, 400.5, 200, LtRed())
.Stroke(1, Black());
}
INITBLOCK {
RegisterExample("Radial gradient", Radial);
RegisterExample("Radial focus gradient", FocusRadial);
}