ultimatepp/examples/PainterExamples/ColorStops.cpp
cxl 845ace0cc0 Painter Examples
git-svn-id: svn://ultimatepp.org/upp/trunk@750 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-01-15 22:25:46 +00:00

15 lines
324 B
C++

#include "Examples.h"
void GradientStop(Painter& sw)
{
sw.Rectangle(20.5, 20.5, 500, 100)
.ColorStop(0.25, Green())
.ColorStop(0.5, Yellow())
.ColorStop(0.75, Gray())
.Fill(0, 0, Blue(), 500, 0, LtRed())
.Stroke(1, Black());
}
INITBLOCK {
RegisterExample("Gradient stops", GradientStop);
}