kemokemo / ebiten-rating

a rating parts for ebitengine games

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ebiten-rating

This package show the rating value with your specified image.

sample image

Usage

// Initialize with your image
g.rating = rating.NewRating(StarImage, 15, 20, 10)

// Set the current rating value
g.rating.SetValue(5.7)

// Draw
func (g *Game) Draw(screen *ebiten.Image) {
	g.rating.Draw(screen)
}

License

Apache-2.0 License

Auther

kemokemo

About

a rating parts for ebitengine games

License:Apache License 2.0


Languages

Language:Go 100.0%