[ Image ] bounce: [ Boolean ]

☞ media ≔ Media new.
☞ a ≔ Image new: ‘a.png’.
media on: ‘start’ do: {
a
x: 20 y: 500,
speed: 10,
move to x: 800 y: 0,
bounce: Yes.
}.

media screen: ‘canvas.png’.

Toggles whether the image will bounce upon collision.