ultimatepp/examples/PainterExamples/RadialFocus.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

41 lines
1,009 B
C++

#include "Examples.h"
#if 0
void RadialFocus(Painter& sw)
{
sw.Circle(400.5, 400.5, 200)
.Fill(300, 300, White(), 400.5, 400.5, 200, LtBlue())
;
}
#endif
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);
}