summaryrefslogtreecommitdiffstats
path: root/chalk/plugins/viewplugins/scripting/samples/ruby/randompaint.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/plugins/viewplugins/scripting/samples/ruby/randompaint.rb')
-rw-r--r--chalk/plugins/viewplugins/scripting/samples/ruby/randompaint.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/chalk/plugins/viewplugins/scripting/samples/ruby/randompaint.rb b/chalk/plugins/viewplugins/scripting/samples/ruby/randompaint.rb
index 1ec25dcd..7f6a9b05 100644
--- a/chalk/plugins/viewplugins/scripting/samples/ruby/randompaint.rb
+++ b/chalk/plugins/viewplugins/scripting/samples/ruby/randompaint.rb
@@ -60,11 +60,11 @@ for i in 1..100
painter.setBrush( Krosschalkcore::newCircleBrush(rand*20,rand*20,rand*10,rand*10) )
end
# paint a point
- tqshape = rand * 7
+ shape = rand * 7
painter.setStrokeStyle(1)
- if( tqshape < 1 )
+ if( shape < 1 )
painter.paintAt(rand * width , rand * height,1.1)
- elsif(tqshape < 2 )
+ elsif(shape < 2 )
xs = Array.new
ys = Array.new
for i in 0..6
@@ -72,14 +72,14 @@ for i in 1..100
ys[i] = rand*height
end
painter.paintPolyline(xs,ys)
- elsif(tqshape < 3)
+ elsif(shape < 3)
painter.paintLine(rand * width, rand * height, 1.1, rand * width, rand * height,1.1)
- elsif(tqshape < 4)
+ elsif(shape < 4)
painter.paintBezierCurve(rand * width, rand * height, 1.1, rand * width, rand * height, rand * width , rand * height, rand * width, rand * height, 1.1)
- elsif(tqshape < 5)
+ elsif(shape < 5)
randomizeStyle(painter)
painter.paintEllipse(rand * width, rand * height, rand * width, rand * height, 1.1)
- elsif(tqshape < 6)
+ elsif(shape < 6)
xs = Array.new
ys = Array.new
for i in 0..6
@@ -88,7 +88,7 @@ for i in 1..100
end
randomizeStyle(painter)
painter.paintPolygon(xs, ys)
- elsif(tqshape < 7)
+ elsif(shape < 7)
randomizeStyle(painter)
painter.paintRect(rand * width, rand * height, rand * width, rand * height, 1.1)
end