Skip to content

Instantly share code, notes, and snippets.

def how_to_make_pizza( components, pizza_size )
components.each do |component|
angle = rand * 2 * Math::PI
dist = rand(pizza_size) / 2.0
Fan << component.move_to( Position.new( dist * Math.cos( angle ), dist * Math.sin ( angle )).release
end
end