work on svg generation

This commit is contained in:
2022-06-16 06:00:27 -06:00
commit 37a5894e41
5 changed files with 196 additions and 0 deletions

21
main.go Normal file
View File

@@ -0,0 +1,21 @@
package main
import (
"fmt"
"os"
"github.com/taigrr/gitgraph/graph"
)
type DayCount [366]int
func main() {
svg := graph.GetImage([]int{1, 2, 5, 6, 5, 4, 5, 8, 7, 43, 2, 3})
f, err := os.Create("out.svg")
if err != nil {
fmt.Printf("Error: %v\n", err)
return
}
defer f.Close()
svg.WriteTo(f)
}