diff --git a/uppdev/PainterExamples/Arc.cpp b/uppdev/PainterExamples/Arc.cpp index 337278696..e0f170fef 100644 --- a/uppdev/PainterExamples/Arc.cpp +++ b/uppdev/PainterExamples/Arc.cpp @@ -4,6 +4,13 @@ void Arc(Painter& sw) { sw.Move(400, 200).Arc(400, 200, 200, 100, 0.0, M_PI).Stroke(4, Blue()); sw.Move(400, 400).Arc(400, 400, 100, 100, 0.0, M_PI / 3).Fill(LtCyan()).Stroke(2, Black()); + sw.Path( + "M600,350 l 50,-25 " + "a25,25 -30 0,1 50,-25 l 50,-25 " + "a25,50 -30 0,1 50,-25 l 50,-25 " + "a25,75 -30 0,1 50,-25 l 50,-25 " + "a25,100 -30 0,1 50,-25 l 50,-25" + ).Stroke(5, Red()); } INITBLOCK { diff --git a/uppdev/PainterExamples/main.cpp b/uppdev/PainterExamples/main.cpp index 1f3551856..2ad71705f 100644 --- a/uppdev/PainterExamples/main.cpp +++ b/uppdev/PainterExamples/main.cpp @@ -187,3 +187,36 @@ GUI_APP_MAIN { App().Run(); } + +/* +struct RGBFiller { + int a; + byte rgb[3]; + int i; + byte *t; + int v[5]; + int n; + + void Flush() { + *t = v[0] * + int add = 1 + ((((uintptr_t)t) >> 1) & 1); + t += add; + i = (i + add) & 3; + } + + void Finish() { + Flush(); Flush(); Flush(); + } + + virtual void Render(int val) { + int v1 = (7 * val) >> 6; + v[0] += v1; + v[1] += 2 * v1; + v[2] += val - 6 * v1; + v[3] += 2 * v1; + v[4] += v1; + if(++n > 3) + Flush(); + } +}; +*/ \ No newline at end of file