mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Developing Painter2.0
git-svn-id: svn://ultimatepp.org/upp/trunk@848 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6be9238f51
commit
5f7bdbb994
34 changed files with 1242 additions and 116 deletions
|
|
@ -9,11 +9,9 @@ void DoRect(Painter &sw, double size, bool image)
|
|||
sw.Line(0, size);
|
||||
sw.Line(size, size);
|
||||
sw.Line(size, 0);
|
||||
#if 0
|
||||
if(image)
|
||||
sw.Fill(TestImg::test(), 0, 0, size, 0);
|
||||
else
|
||||
#endif
|
||||
sw.Fill(Blue());
|
||||
|
||||
sw.Begin();
|
||||
|
|
@ -38,8 +36,6 @@ void PythagorasTree(Painter& sw)
|
|||
sw.End();
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
void PythagorasTreeImage(Painter& sw)
|
||||
{
|
||||
sw.Begin();
|
||||
|
|
@ -48,9 +44,8 @@ void PythagorasTreeImage(Painter& sw)
|
|||
DoRect(sw, 160, true);
|
||||
sw.End();
|
||||
}
|
||||
#endif
|
||||
|
||||
INITBLOCK {
|
||||
RegisterExample("Pythagoras tree", PythagorasTree);
|
||||
// RegisterExample("Pythagoras tree image", PythagorasTreeImage);
|
||||
RegisterExample("Pythagoras tree image", PythagorasTreeImage);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue