examples/sample6.rb in sgl-0.4.0 vs examples/sample6.rb in sgl-1.0.0

- old
+ new

@@ -1,18 +1,18 @@ -require "sgl" - -def setup - window 200, 200 -end - -def display - for a in 0..200 - color a/2, 50, 50 - if a < 100 - line a, 50, a, 100 - else - line a, 100, a, 150 - end - end -end - -mainloop +require "sgl" + +def setup + window 200, 200 +end + +def display + for a in 0..200 + color a/2, 50, 50 + if a < 100 + line a, 50, a, 100 + else + line a, 100, a, 150 + end + end +end + +mainloop