This commit is contained in:
chai2010 2016-01-27 17:13:06 +08:00
parent 131d5511c0
commit 71c31300a1

View File

@ -55,7 +55,7 @@ func lissajous(out io.Writer) {
x := math.Sin(t) x := math.Sin(t)
y := math.Sin(t*freq + phase) y := math.Sin(t*freq + phase)
img.SetColorIndex(size+int(x*size+0.5), size+int(y*size+0.5), img.SetColorIndex(size+int(x*size+0.5), size+int(y*size+0.5),
bla kIndex) blackIndex)
} }
phase += 0.1 phase += 0.1
anim.Delay = append(anim.Delay, delay) anim.Delay = append(anim.Delay, delay)