mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-28 06:12:53 -06:00
New painter examples
git-svn-id: svn://ultimatepp.org/upp/trunk@869 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ea8d677f93
commit
b556ccca12
17 changed files with 176 additions and 16 deletions
17
examples/PainterExamples/Div.cpp
Normal file
17
examples/PainterExamples/Div.cpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include "Examples.h"
|
||||
|
||||
void Div(Painter& sw)
|
||||
{
|
||||
sw.Character(100, 100, 'O', Arial(100))
|
||||
.Character(100, 150, 'O', Arial(100))
|
||||
.Fill(Black());
|
||||
sw.Translate(200, 0);
|
||||
sw.Character(100, 100, 'O', Arial(100))
|
||||
.Div()
|
||||
.Character(100, 150, 'O', Arial(100))
|
||||
.Fill(Black());
|
||||
}
|
||||
|
||||
INITBLOCK {
|
||||
RegisterExample("Div", Div);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue