https://github.com/hymkor/go-unicodesemigraphics
https://github.com/hymkor/go-unicodesemigraphics
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hymkor/go-unicodesemigraphics
- Owner: hymkor
- Created: 2021-10-31T16:16:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-01T16:25:14.000Z (over 3 years ago)
- Last Synced: 2025-02-10T15:50:54.911Z (3 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
go-unicodesemigraphics
======================```go
package mainimport (
"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())
}
```