This commit is contained in:
Yongwei Xing 2021-02-26 16:13:53 +08:00
parent 40df98ae2f
commit 86f6c84ad6

View file

@ -16,7 +16,7 @@ func NewWave(fn Formula) *wave {
return &wave{fn: fn}
}
// GenerativePolar draws the image in polar coordinator system.
// GenerativePolar draws the image in polar coordinate system.
func (w *wave) GenerativePolar(c *canva, rgba color.RGBA) {
for x := -math.Pi; x <= math.Pi; x += 0.01 {
for y := -math.Pi; y <= math.Pi; y += 0.01 {
@ -30,7 +30,7 @@ func (w *wave) GenerativePolar(c *canva, rgba color.RGBA) {
}
}
// Generative draws the image in cartesian coordinator system.
// Generative draws the image in cartesian coordinate system.
func (w *wave) Generative(c *canva, rgba color.RGBA) {
for x := -math.Pi; x <= math.Pi; x += 0.008 {
for y := -math.Pi; y <= math.Pi; y += 0.008 {