Documentation ¶
Index ¶
- func AddData(fn LoadFn)
- func Fullscreen(b bool)
- func InitGreyPalette(p [256]uint32)
- func InitShadedPalette(neutral int, rgb color.RGBA)
- func Load(file string) ([]byte, error)
- func LoadGreyPicture(path string) (*image.Gray, error)
- func LoadPalPicture(path string) (*image.Paletted, error)
- func QueryPerformanceCounter() (int64, error)
- func QueryPerformanceFreq() (int64, error)
- func Run(fn func())
- func RunTimed(effect TimedEffect)
- func RunTimedDur(effect TimedEffect, duration time.Duration)
- func RunTimedMusic(effect TimedEffect, musicFile string)
- func RunWriteToDisk(fx TimedEffect, n int, path string)
- func SetRenderSize(w, h int)
- func ToGray(img image.Image) *image.Gray
- type LoadFn
- type MusicPlayer
- type Options
- type ProgressiveEffect
- type TimedEffect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fullscreen ¶
func Fullscreen(b bool)
func InitGreyPalette ¶
func InitGreyPalette(p [256]uint32)
func InitShadedPalette ¶
InitGreyShadedPalette will initialize a palette that goes from black -> neutral -> white. Specify the palette index where the color should be the supplied value.
func QueryPerformanceCounter ¶
func QueryPerformanceFreq ¶
func RunTimed ¶
func RunTimed(effect TimedEffect)
func RunTimedDur ¶
func RunTimedDur(effect TimedEffect, duration time.Duration)
func RunTimedMusic ¶
func RunTimedMusic(effect TimedEffect, musicFile string)
func RunWriteToDisk ¶
func RunWriteToDisk(fx TimedEffect, n int, path string)
func SetRenderSize ¶
func SetRenderSize(w, h int)
Types ¶
type MusicPlayer ¶
type ProgressiveEffect ¶
type TimedEffect ¶
Click to show internal directories.
Click to hide internal directories.