Documentation ¶
Overview ¶
Package hsutil holds utility and helper functions
Index ¶
- func BoolToInt(b bool) int32
- func Color(rgba uint32) color.RGBA
- func CreateFileAtPath(pathToFile string, data []byte) bool
- func ExportToGif(images []*image.RGBA, delay int32) error
- func Hex2RGB(hex string) (r, g, b uint8, err error)
- func RGB2Hex(red, green, blue uint8) string
- func SplitIntoLinesWithMaxWidth(fullSentence string, maxChars int) []string
- func Wrap(x, max int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFileAtPath ¶
CreateFileAtPath creates file at path
func ExportToGif ¶
ExportToGif converts images area to GIF format and saves it under the path selected by user tutorial: http://tech.nitoyon.com/en/blog/2016/01/07/go-animated-gif-gen/
func SplitIntoLinesWithMaxWidth ¶
SplitIntoLinesWithMaxWidth splits the given string into lines considering the given maxChars
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.