ultimatepp/uppdev/PainterExamples/Gradient.cpp
cxl d7f5262fc3 Developing Painter20
git-svn-id: svn://ultimatepp.org/upp/trunk@847 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-02-09 16:37:48 +00:00

32 lines
740 B
C++

#include "Examples.h"
#if 0
void FillGradient(Painter& sw)
{
sw.Rectangle(10, 10, 1000, 600)
.Fill(200, 100, Blue(), 300, 300, LtRed())
.Stroke(2, Black());
}
void FillGradientReflect(Painter& sw)
{
sw.Rectangle(10, 10, 1000, 600)
.Fill(200, 100, Blue(), 300, 300, LtRed(), GRADIENT_REFLECT)
.Stroke(2, Black());
}
void FillGradientRepeat(Painter& sw)
{
sw.Rectangle(10, 10, 1000, 600)
.Fill(200, 100, Blue(), 300, 300, LtRed(), GRADIENT_REPEAT)
.Stroke(2, Black());
}
INITBLOCK {
RegisterExample("Linear gradient - PAD", FillGradient);
RegisterExample("Linear gradient - REFLECT", FillGradientReflect);
RegisterExample("Linear gradient - REPEAT", FillGradientRepeat);
}
#endif