mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2024-11-04 13:33:41 +00:00
fix code
This commit is contained in:
parent
131d5511c0
commit
71c31300a1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user