summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2010-08-18 10:01:44 +0200
committerJens Bache-Wiig <jbache@trolltech.com>2010-08-18 10:01:44 +0200
commit127655651e00a7ad3fb641e30b8ab00f0327f32a (patch)
treea6f5d7271684ca51790b6e0cdb84bef345960c42
parent6525a0183ba87159d4fd52b64100335e2455a4ec (diff)
Some indentation
-rw-r--r--examples/simple/Spiro.qml14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/simple/Spiro.qml b/examples/simple/Spiro.qml
index 0bbb5b5..7baa29f 100644
--- a/examples/simple/Spiro.qml
+++ b/examples/simple/Spiro.qml
@@ -17,12 +17,12 @@ Canvas {
}
onPaint: {
- ctx.strokeStyle = color;
- ctx.translate((width/2), (height/2));
- ctx.rotate(mousearea.mouseY/width)
- drawSpirograph(ctx,20*(2)/(1),-8*(3)/(1),mousearea.mouseX/2);
- ctx.globalAlpha = 0.5;
- drawSpirograph(ctx,20*(2)/(1),-8*(3)/(1),mousearea.mouseX/2 -10);
+ ctx.strokeStyle = color;
+ ctx.translate((width/2), (height/2));
+ ctx.rotate(mousearea.mouseY/width)
+ drawSpirograph(ctx,20*(2)/(1),-8*(3)/(1),mousearea.mouseX/2);
+ ctx.globalAlpha = 0.5;
+ drawSpirograph(ctx,20*(2)/(1),-8*(3)/(1),mousearea.mouseX/2 -10);
}
function drawSpirograph(ctx,R,r,O){
@@ -40,7 +40,7 @@ Canvas {
x1 = x2;
y1 = y2;
i++;
- } while (x2 != R-O && y2 != 0 );
+ } while (x2 != R-O && y2 != 0 );
ctx.stroke();
}
}