PainterExamples...

git-svn-id: svn://ultimatepp.org/upp/trunk@896 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-02-23 15:44:59 +00:00
parent 76e83e7b4c
commit 3180236ef4
2 changed files with 9 additions and 1 deletions

View file

@ -96,7 +96,7 @@ void Test::QuadraticOp(const Pointf& p1, const Pointf& p, bool rel)
GUI_APP_MAIN
{
Test test;
test.Character(0, 0, 'G', Roman(50));
test.Character(0, 0, 'G', Roman(100));
DDUMP(quad);
DDUMP(move);
DDUMP(line);

View file

@ -7,6 +7,14 @@ void Radial(Painter& sw)
.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);
}