ultimatepp/examples/PainterExamples/RadialFocus.cpp
cxl 0d4c8a71a5 PainterExamples improvement
git-svn-id: svn://ultimatepp.org/upp/trunk@784 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-01-18 17:58:58 +00:00

39 lines
992 B
C++

#include "Examples.h"
void RadialFocus(Painter& sw)
{
sw.Circle(400.5, 400.5, 200)
.Fill(300, 300, White(), 400.5, 400.5, 200, LtBlue())
;
}
void RadialFocusPad(Painter& sw)
{
sw.Rectangle(10, 10, 1000, 600)
.Fill(300, 300, White(), 400.5, 400.5, 200, LtBlue(), GRADIENT_PAD)
.Stroke(2, Black())
;
}
void RadialFocusReflect(Painter& sw)
{
sw.Rectangle(10, 10, 1000, 600)
.Fill(300, 300, White(), 400.5, 400.5, 200, LtBlue(), GRADIENT_REFLECT)
.Stroke(2, Black())
;
}
void RadialFocusRepeat(Painter& sw)
{
sw.Rectangle(10, 10, 1000, 600)
.Fill(300, 300, White(), 400.5, 400.5, 200, LtBlue(), GRADIENT_REPEAT)
.Stroke(2, Black())
;
}
INITBLOCK {
RegisterExample("Radial gradient - focus", RadialFocus);
RegisterExample("Radial gradient - focus - PAD", RadialFocusPad);
RegisterExample("Radial gradient - focus - REFLECT", RadialFocusReflect);
RegisterExample("Radial gradient - focus - REPEAT", RadialFocusRepeat);
}