aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIonut Alexandrescu <ionut.alexandrescu@qt.io>2017-02-03 17:47:11 +0100
committerIonut Alexandrescu <ionut.alexandrescu@qt.io>2017-02-21 12:30:17 +0000
commit3e537dd3dcf5608241282d8437fb1593d2e6fa17 (patch)
tree48a8e7939532834ba37a8766893fad78cc8da9f8
parent3fc94a5a6cff19f4abdf91319e89bce2c1138c5c (diff)
Fix smile qml example
The mouth line was not closed and the right eye line was too big Change-Id: Ifea4a8dbdd38df3c83cd80491210585fcbb76d3c Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r--examples/quick/canvas/smile/smile.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/quick/canvas/smile/smile.qml b/examples/quick/canvas/smile/smile.qml
index eebfee2d77..25e9d031de 100644
--- a/examples/quick/canvas/smile/smile.qml
+++ b/examples/quick/canvas/smile/smile.qml
@@ -101,14 +101,14 @@ Item {
ctx.moveTo(75 + 50 * Math.cos(0),
75 - 50 * Math.sin(Math.PI*2));
ctx.arc(75,75,50,0,Math.PI*2,true); // Outer circle
- ctx.moveTo(75,70);
- ctx.arc(75,70,35,0,Math.PI,false); // Mouth (clockwise)
- ctx.moveTo(60,65);
- ctx.arc(60,65,5,0,Math.PI*2,true); // Left eye
+ ctx.moveTo(60,60);
+ ctx.arc(60,60,5,0,Math.PI*2,true); // Left eye
ctx.moveTo(90 + 5 * Math.cos(0),
65 - 5 * Math.sin(Math.PI*2));
- ctx.moveTo(90,65);
- ctx.arc(90,65,5,0,Math.PI*2,true); // Right eye
+ ctx.moveTo(90,60);
+ ctx.arc(90,60,5,-Math.PI,Math.PI*3,false); // Right eye
+ ctx.moveTo(75,70);
+ ctx.arc(75,70,35,0,Math.PI,false); // Mouth (clockwise)
ctx.closePath();
if (canvas.fill)
ctx.fill();