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

- old
+ new

@@ -1,20 +1,20 @@ -require "sgl" - -def setup - window -200, -200, 200, 200 -end - -def display - beginObj(POLYGON) - color 100, 0, 0, 0 - vertex 60, 90 - color 0, 100, 0, 100 - vertex -120, 60 - color 0, 0, 100, 100 - vertex -90, -90 - color 100, 100, 0, 0 - vertex 120, -90 - endObj -end - -mainloop +require "sgl" + +def setup + window -200, -200, 200, 200 +end + +def display + beginObj(POLYGON) + color 100, 0, 0, 0 + vertex 60, 90 + color 0, 100, 0, 100 + vertex -120, 60 + color 0, 0, 100, 100 + vertex -90, -90 + color 100, 100, 0, 0 + vertex 120, -90 + endObj +end + +mainloop