utils

package
v0.0.0-...-d623aaa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2018 License: ISC Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndentStrings

func IndentStrings(str string, indentLevel int) string

IndentStrings adds indentation to all lines in a string

Types

type HexColor

type HexColor uint32

HexColor is a single 8bpc color from a single hex number (similar to CSS)

func (HexColor) RGBA

func (hcol HexColor) RGBA() (r, g, b, a uint32)

RGBA returns the color as separate alpha-premultiplied color components within [0, 0xffff]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL