An open API service indexing awesome lists of open source software.

https://github.com/hymkor/go-unicodesemigraphics


https://github.com/hymkor/go-unicodesemigraphics

Last synced: 24 days ago
JSON representation

Awesome Lists containing this project

README

        

go-unicodesemigraphics
======================

```go
package main

import (
"fmt"
"math"

"github.com/zetamatta/go-unicodesemigraphics"
)

func main() {
bmp := unicodesemigraphics.NewBitmap(80, 40)

for theta := 0.0; theta < 360; theta += 1 {
x := 40.0 + 38.0*math.Cos(theta*math.Pi/180)
y := 20.0 + 19.0*math.Sin(theta*math.Pi/180)
bmp.Set(int(x), int(y), true)
}
fmt.Println(bmp.String())
}
```

![image](./demo.png)