Oscillator
import coracle.Drawing
import kotlin.math.sin
class OscillatorDrawing: Drawing() {
var theta = 0.0f
override fun setup() {
(450, 150)
size(width/2, height/2)
translate()
noStroke(0xbde4df)
fill}
override fun draw() {
(0xf5f2f0)
background
+= 0.02f
theta (sin(theta) * 100f, 0, 30)
circle}
}