diff options
| author | Brandon C. Irizarry <brandon.irizarry@gmail.com> | 2026-03-07 16:09:31 -0500 |
|---|---|---|
| committer | Brandon C. Irizarry <brandon.irizarry@gmail.com> | 2026-03-07 16:09:31 -0500 |
| commit | 337bdc6d3485007ef151daf37fb43e5dab85722b (patch) | |
| tree | c916f3756a6849e87bb5685588ec6ed436a7e84c | |
| parent | 6118dce2db22e8461d9e21c70c330674f5fe6ca0 (diff) | |
feat: convert to reusable packageex1.6
| -rw-r--r-- | main.go | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -1,4 +1,4 @@ -package main +package lissajous import ( "image" @@ -7,7 +7,6 @@ import ( "io" "math" "math/rand/v2" - "os" ) var palette = []color.Color{ @@ -22,11 +21,7 @@ const ( foregroundIndex ) -func main() { - lissajous(os.Stdout) -} - -func lissajous(out io.Writer) { +func Lissajous(out io.Writer) { const ( cycles = 5 res = 0.001 |
