channelshift

package
v0.0.0-...-db9c320 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelShift

type ChannelShift struct {
	// contains filtered or unexported fields
}

func Must

func Must(ps *ChannelShift, err error) *ChannelShift

func New

func New(path string, opts ...NewOpt) (*ChannelShift, error)

func (*ChannelShift) Shift

func (cs *ChannelShift) Shift() image.Image

func (*ChannelShift) ShiftIterate

func (cs *ChannelShift) ShiftIterate() []image.Image

ShiftIterate calls Shift multiple times, changing the base offset

type NewOpt

type NewOpt func(*ChannelShift)

func WithAlphaShift

func WithAlphaShift(x, y int) NewOpt

func WithAnimate

func WithAnimate(animate int) NewOpt

func WithBlueShift

func WithBlueShift(x, y int) NewOpt

func WithChunkVolatility

func WithChunkVolatility(chunkVol int) NewOpt

func WithChunks

func WithChunks(dist int) NewOpt

func WithDirection

func WithDirection(direction lib.Direction) NewOpt

func WithGreenShift

func WithGreenShift(x, y int) NewOpt

func WithOffsetVolatility

func WithOffsetVolatility(offsetVol int) NewOpt

func WithRedShift

func WithRedShift(x, y int) NewOpt

func WithSeed

func WithSeed(seed int64) NewOpt

type Translate

type Translate struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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