samples/processing_app/topics/create_shapes/library/polygon/polygon.rb in ruby-processing-2.6.2 vs samples/processing_app/topics/create_shapes/library/polygon/polygon.rb in ruby-processing-2.6.3

- old
+ new

@@ -5,12 +5,12 @@ # The PShape object attr_reader :s, :x, :y, :speed, :height def initialize(s_, width, height) @x = rand(width) - @y = rand(-500 .. -100) + @y = rand(-500..-100) @s = s_ - @speed = rand(2 .. 6) + @speed = rand(2..6) @height = height end # Simple motion def move