soryu

package
v0.0.0-...-7f7808e Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: Unlicense Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseHexColor

func ParseHexColor(s string) (c color.RGBA, err error)

Types

type Channel

type Channel int
const (
	// Red is the red channel
	Red Channel = iota
	// Green is the green channel
	Green
	// Blue is the blue channel
	Blue
	// Alpha is the alpha channel
	Alpha

	MAXC = 1<<16 - 1
)

func RandomChannel

func RandomChannel() Channel

type Images

type Images struct {
	In     image.Image
	Gifify []Img
}

type Img

type Img struct {
	In      image.Image
	Out     draw.Image
	Bounds  image.Rectangle
	Imgtype string
}

func (*Img) BigLines

func (i *Img) BigLines()

func (*Img) Burst

func (i *Img) Burst()

func (*Img) ColorBoost

func (i *Img) ColorBoost(boostColor string)

func (*Img) Copy

func (i *Img) Copy()

func (*Img) CopyChannel

func (i *Img) CopyChannel(inX, inY, outX, outY int, copyChannel Channel)

func (*Img) CopyChannelBigLines

func (i *Img) CopyChannelBigLines()

func (*Img) GaussianNoise

func (i *Img) GaussianNoise()

func (*Img) Ghost

func (i *Img) Ghost()

func (*Img) GhostStretch

func (i *Img) GhostStretch()

TODO: fix

func (*Img) GhostTint

func (i *Img) GhostTint()

func (*Img) Noise

func (i *Img) Noise(hex string)

func (*Img) OverlayImage

func (i *Img) OverlayImage(overlayImage string)

func (*Img) RandomCorruptions

func (i *Img) RandomCorruptions(uniform bool)

func (*Img) Scanlines

func (i *Img) Scanlines()

func (*Img) Seed

func (i *Img) Seed(seed int64)

func (*Img) SetNewBounds

func (i *Img) SetNewBounds(seed int64)

func (*Img) ShiftChannel

func (i *Img) ShiftChannel(left bool)

func (*Img) Split

func (i *Img) Split(height, width int, split bool)

func (*Img) Streak

func (i *Img) Streak(streaks, length int, left bool)

func (*Img) VerticalSplit

func (i *Img) VerticalSplit(width, height int, split bool)

func (*Img) Write

func (i *Img) Write(out io.Writer) error

Jump to

Keyboard shortcuts

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