diff --git a/Samples.md b/Samples.md index 7e723fa..239eed6 100644 --- a/Samples.md +++ b/Samples.md @@ -1,12 +1,10 @@ -### Test results - +# Samples Those samples are largely inspired by this page: > http://cairographics.org/samples/ ## Test Rectangle -![test_results/TestRectangle.png](test_results/TestPath.png) ```go func TestRectangle() { @@ -21,8 +19,9 @@ func TestRectangle() { } ``` +![samples/TestRectangle.png](samples/TestRectangle.png) + ## Test Draw Arc -![test_results/TestDrawArc.png](test_results/TestDrawArc.png) ```go func TestDrawArc() { @@ -54,9 +53,9 @@ func TestDrawArc() { } ``` -## Test Draw Arc Negative -![test_results/TestDrawArcNegative.png](test_results/TestDrawArcNegative.png) +![samples/TestDrawArc.png](samples/TestDrawArc.png) +## Test Draw Arc Negative ```go func TestDrawArcNegative() { @@ -88,8 +87,9 @@ func TestDrawArcNegative() { } ``` +![samples/TestDrawArcNegative.png](samples/TestDrawArcNegative.png) + ## Test Curve Rectangle -![test_results/TestCurveRectangle.png](test_results/TestCurveRectangle.png) ```go func TestCurveRectangle() { @@ -148,8 +148,10 @@ func TestCurveRectangle() { } ``` +![samples/TestCurveRectangle.png](samples/TestCurveRectangle.png) + + ## Test Draw Cubic Curve -![test_results/TestDrawCubicCurve.png](test_results/TestDrawCubicCurve.png) ```go func TestDrawCubicCurve() { @@ -177,11 +179,13 @@ func TestDrawCubicCurve() { gc.Stroke() saveToPngFile("TestDrawCubicCurve", i) } - ``` +![samples/TestDrawCubicCurve.png](samples/TestDrawCubicCurve.png) + ## Test Dash ## -![test_results/TestDash.png](test_results/TestDash.png) + +![samples/TestDash.png](samples/TestDash.png) ```go func TestDash() { @@ -203,7 +207,6 @@ func TestDash() { ``` ## Test Fill Stroke ## -![test_results/TestFillStroke.png](test_results/TestFillStroke.png) ```go func TestFillStroke() { @@ -228,8 +231,10 @@ func TestFillStroke() { } ``` +![samples/TestFillStroke.png](samples/TestFillStroke.png) + + ## Test Fill Style -![test_results/TestFillStyle.png](test_results/TestFillStyle.png) ```go func TestFillStyle() { @@ -262,8 +267,9 @@ func TestFillStyle() { } ``` +![samples/TestFillStyle.png](samples/TestFillStyle.png) + ## Test Multi Segment Caps -![test_results/TestMultiSegmentCaps.png](test_results/TestMultiSegmentCaps.png) ```go func TestMultiSegmentCaps() { @@ -284,8 +290,9 @@ func TestMultiSegmentCaps() { } ``` +![samples/TestMultiSegmentCaps.png](samples/TestMultiSegmentCaps.png) + ## Test Round Rectangle -![test_results/TestRoundRectangle.png](test_results/TestRoundRectangle.png) ```go func TestRoundRectangle() { @@ -314,8 +321,9 @@ func TestRoundRectangle() { } ``` +![samples/TestRoundRectangle.png](samples/TestRoundRectangle.png) + ## Test Line Cap -![test_results/TestLineCap.png](test_results/TestLineCap.png) ```go func TestLineCap() { @@ -348,8 +356,9 @@ func TestLineCap() { } ``` +![samples/TestLineCap.png](samples/TestLineCap.png) + ## Test Line Join -![test_results/TestLineJoin.png](test_results/TestLineJoin.png) ```go func TestLineJoin() { @@ -376,8 +385,9 @@ func TestLineJoin() { } ``` +![samples/TestLineJoin.png](samples/TestLineJoin.png) + ## Test Bubble -![test_results/TestBubble.png](test_results/TestBubble.png) ```go func TestBubble() { @@ -395,8 +405,9 @@ func TestBubble() { } ``` +![samples/TestBubble.png](samples/TestBubble.png) + ## Test Star -![test_results/TestStar.png](test_results/TestStar.png) ```go func TestStar() { @@ -415,8 +426,9 @@ func TestStar() { } ``` +![samples/TestStar.png](samples/TestStar.png) + ## Test Transform -![test_results/TestTransform.png](test_results/TestTransform.png) ```go func TestTransform() { @@ -474,8 +486,9 @@ func TestTransform() { } ``` +![samples/TestTransform.png](samples/TestTransform.png) + ## Test Path Transform -![test_results/TestPathTransform.png](test_results/TestPathTransform.png) ```go func TestPathTransform() { @@ -488,8 +501,9 @@ func TestPathTransform() { } ``` +![samples/TestPathTransform.png](samples/TestPathTransform.png) + ## Test Android -![test_results/TestAndroid.png](test_results/TestAndroid.png) ```go func android(gc *draw2d.GraphicContext, x, y float) { @@ -521,8 +535,9 @@ func android(gc *draw2d.GraphicContext, x, y float) { } ``` +![samples/TestAndroid.png](samples/TestAndroid.png) + ## Test Gopher -![test_results/TestGopher.png](test_results/TestGopher.png) ```go func gordon(gc *draw2d.GraphicContext, x, y, w, h float) { @@ -591,8 +606,9 @@ func gordon(gc *draw2d.GraphicContext, x, y, w, h float) { } ``` +![samples/TestGopher.png](samples/TestGopher.png) + ## Test Fill String -![test_results/TestFillString.png](test_results/TestFillString.png) ```go func TestFillString() { @@ -608,4 +624,11 @@ func TestFillString() { gc.FillString("cou") saveToPngFile("TestFillString", i) } -``` \ No newline at end of file +``` + +![samples/TestFillString.png](samples/TestFillString.png) + + +## Reference + +see corresponding [samples.go](samples/samples.go) file. diff --git a/samples/TestAndroid.png b/samples/TestAndroid.png new file mode 100644 index 0000000..ffa068b Binary files /dev/null and b/samples/TestAndroid.png differ diff --git a/samples/TestBigPicture.png b/samples/TestBigPicture.png new file mode 100644 index 0000000..791a9df Binary files /dev/null and b/samples/TestBigPicture.png differ diff --git a/samples/TestBubble.png b/samples/TestBubble.png new file mode 100644 index 0000000..29fff3f Binary files /dev/null and b/samples/TestBubble.png differ diff --git a/samples/TestCurveRectangle.png b/samples/TestCurveRectangle.png new file mode 100644 index 0000000..2220ee7 Binary files /dev/null and b/samples/TestCurveRectangle.png differ diff --git a/samples/TestDash.png b/samples/TestDash.png new file mode 100644 index 0000000..324fa3d Binary files /dev/null and b/samples/TestDash.png differ diff --git a/samples/TestDrawArc.png b/samples/TestDrawArc.png new file mode 100644 index 0000000..85b04af Binary files /dev/null and b/samples/TestDrawArc.png differ diff --git a/samples/TestDrawArcNegative.png b/samples/TestDrawArcNegative.png new file mode 100644 index 0000000..6fb9fa8 Binary files /dev/null and b/samples/TestDrawArcNegative.png differ diff --git a/samples/TestDrawCubicCurve.png b/samples/TestDrawCubicCurve.png new file mode 100644 index 0000000..7cff371 Binary files /dev/null and b/samples/TestDrawCubicCurve.png differ diff --git a/samples/TestDrawImage.png b/samples/TestDrawImage.png new file mode 100644 index 0000000..c1b377d Binary files /dev/null and b/samples/TestDrawImage.png differ diff --git a/samples/TestFillString.png b/samples/TestFillString.png new file mode 100644 index 0000000..547f4a7 Binary files /dev/null and b/samples/TestFillString.png differ diff --git a/samples/TestFillStroke.png b/samples/TestFillStroke.png new file mode 100644 index 0000000..3582b64 Binary files /dev/null and b/samples/TestFillStroke.png differ diff --git a/samples/TestFillStyle.png b/samples/TestFillStyle.png new file mode 100644 index 0000000..ad23dda Binary files /dev/null and b/samples/TestFillStyle.png differ diff --git a/samples/TestGettingStarted.png b/samples/TestGettingStarted.png new file mode 100644 index 0000000..c1c532a Binary files /dev/null and b/samples/TestGettingStarted.png differ diff --git a/samples/TestGopher.png b/samples/TestGopher.png new file mode 100644 index 0000000..aac6491 Binary files /dev/null and b/samples/TestGopher.png differ diff --git a/samples/TestLineCap.png b/samples/TestLineCap.png new file mode 100644 index 0000000..0474d91 Binary files /dev/null and b/samples/TestLineCap.png differ diff --git a/samples/TestLineJoin.png b/samples/TestLineJoin.png new file mode 100644 index 0000000..f6605e5 Binary files /dev/null and b/samples/TestLineJoin.png differ diff --git a/samples/TestMultiSegmentCaps.png b/samples/TestMultiSegmentCaps.png new file mode 100644 index 0000000..1ac6698 Binary files /dev/null and b/samples/TestMultiSegmentCaps.png differ diff --git a/samples/TestPathTransform.png b/samples/TestPathTransform.png new file mode 100644 index 0000000..45bf578 Binary files /dev/null and b/samples/TestPathTransform.png differ diff --git a/samples/TestRectangle.png b/samples/TestRectangle.png new file mode 100644 index 0000000..d961ad2 Binary files /dev/null and b/samples/TestRectangle.png differ diff --git a/samples/TestRoundRectangle.png b/samples/TestRoundRectangle.png new file mode 100644 index 0000000..9b5ef12 Binary files /dev/null and b/samples/TestRoundRectangle.png differ diff --git a/samples/TestStar.png b/samples/TestStar.png new file mode 100644 index 0000000..65c7ec7 Binary files /dev/null and b/samples/TestStar.png differ diff --git a/samples/TestTransform.png b/samples/TestTransform.png new file mode 100644 index 0000000..7cd821b Binary files /dev/null and b/samples/TestTransform.png differ