fix typo
This commit is contained in:
parent
40df98ae2f
commit
86f6c84ad6
1 changed files with 2 additions and 2 deletions
4
wave.go
4
wave.go
|
@ -16,7 +16,7 @@ func NewWave(fn Formula) *wave {
|
||||||
return &wave{fn: fn}
|
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) {
|
func (w *wave) GenerativePolar(c *canva, rgba color.RGBA) {
|
||||||
for x := -math.Pi; x <= math.Pi; x += 0.01 {
|
for x := -math.Pi; x <= math.Pi; x += 0.01 {
|
||||||
for y := -math.Pi; y <= math.Pi; y += 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) {
|
func (w *wave) Generative(c *canva, rgba color.RGBA) {
|
||||||
for x := -math.Pi; x <= math.Pi; x += 0.008 {
|
for x := -math.Pi; x <= math.Pi; x += 0.008 {
|
||||||
for y := -math.Pi; y <= math.Pi; y += 0.008 {
|
for y := -math.Pi; y <= math.Pi; y += 0.008 {
|
||||||
|
|
Loading…
Reference in a new issue