Animate a pendulum: Difference between revisions

Line 1,660:
 
=={{header|Groovy}}==
Straight translation of Java solution groovified by removing explicit definitions and converting casts to Groovy as style where needed.
 
<lang groovy>
import java.awt.*;