Documentation ¶
Index ¶
- Constants
- func GetColorsSV(baseHue, hueShift float64, times int, S, V, alpha float64) []color2.Color
- func GetLatestVersionFromGitHub() (url string, tag string, err error)
- func Humanize[T constraints.Integer](number T) string
- func LoadTexture(path string) (*texture.TextureSingle, error)
- func LoadTextureToAtlas(atlas *texture.TextureAtlas, path string) (*texture.TextureRegion, error)
- func MakeScreenshot(w, h int, name string, async bool)
- func QuickRestart()
- func TransformVersion(version string) uint64
- func Unzip(src string, dest string) ([]string, error)
- type UpdateStatus
Constants ¶
View Source
const ( Failed = UpdateStatus(iota) Ignored UpToDate Snapshot UpdateAvailable )
Variables ¶
This section is empty.
Functions ¶
func GetColorsSV ¶
func GetLatestVersionFromGitHub ¶
GetLatestVersionFromGitHub makes a request to GitHub and returns url and tag of the latest version found
func Humanize ¶
func Humanize[T constraints.Integer](number T) string
func LoadTexture ¶
func LoadTexture(path string) (*texture.TextureSingle, error)
func LoadTextureToAtlas ¶
func LoadTextureToAtlas(atlas *texture.TextureAtlas, path string) (*texture.TextureRegion, error)
func MakeScreenshot ¶
func QuickRestart ¶
func QuickRestart()
func TransformVersion ¶
TransformVersion transfers version to a more comparable format.
- 0.6.7 becomes 600079999
- 0.6.7-s(napshot)12 becomes 600070012
- 1.0.0 becomes 1000000009999
Types ¶
type UpdateStatus ¶
type UpdateStatus int
func CheckForUpdate ¶
func CheckForUpdate() (UpdateStatus, string, error)
Click to show internal directories.
Click to hide internal directories.