mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.benchmarks
git-svn-id: svn://ultimatepp.org/upp/trunk@12484 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
5311d20338
commit
3abacefbf6
42 changed files with 8864 additions and 31 deletions
18
benchmarks/PainterExamples/Dash.cpp
Normal file
18
benchmarks/PainterExamples/Dash.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include "Examples.h"
|
||||
|
||||
void Dash(Painter& sw)
|
||||
{
|
||||
sw.Move(50, 50).Line(400, 200).Dash("2").Stroke(5, Blue());
|
||||
sw.Translate(0, 10);
|
||||
sw.Move(50, 50).Line(400, 200).Dash("10 5").Stroke(5, Blue());
|
||||
sw.Translate(0, 10);
|
||||
sw.Move(50, 50).Line(400, 200).Dash("10 5 5 5").Stroke(5, Blue());
|
||||
sw.Translate(0, 10);
|
||||
sw.Move(50, 50).Line(400, 200).Dash("1").Stroke(5, Blue());
|
||||
sw.Translate(0, 10);
|
||||
sw.Move(50, 50).Line(400, 200).Dash("1 2 3 4 5").Stroke(5, Blue());
|
||||
}
|
||||
|
||||
INITBLOCK {
|
||||
RegisterExample("Dash test", Dash);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue