.benchmarks

git-svn-id: svn://ultimatepp.org/upp/trunk@12484 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-11-08 11:58:50 +00:00
parent 5311d20338
commit 3abacefbf6
42 changed files with 8864 additions and 31 deletions

View 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);
}