mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
PainterExamples...
git-svn-id: svn://ultimatepp.org/upp/trunk@896 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
76e83e7b4c
commit
3180236ef4
2 changed files with 9 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue