samples/04_physics_and_collisions/08_bouncing_on_collision/app/ball.rb
def draw args
        #args.outputs.solids << [@x, @y, @width, @height, 255, 255, 0];
        args.outputs.sprites << [
          @center.x-@radius,
          @center.y-@radius,
          @radius*2,
          @radius*2,
          "sprites/circle-white.png",
          0,
          255,
          255,    #r
          0,    #g
          255   #b
        ]
    end
#render the ball to the screen
render the ball to the screen
render the ball to the screen
def draw args
        args.outputs.sprites << [
          @center.x-@radius,
          @center.y-@radius,
          @radius*2,
          @radius*2,
          "sprites/circle-white.png",
          0,
          255,
          255,    
          0,    
          255   
        ]
    end
def draw args args . outputs . sprites << [ @center . x - @radius , @center . y - @radius , @radius * 2 , @radius * 2 , "sprites/circle-white.png" , 0 , 255 , 255 , 0 , 255 ] end
render the ball to the screen
render the ball to the screen
#args.outputs.solids << [@x, @y, @width, @height, 255, 255, 0]; #r #g #b
args