pxl

package module
v0.0.0-...-cdaa577 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeURL

func DecodeURL(url *url.URL) (Pxl, *EncodingOptions, error)

func EncodeGif

func EncodeGif(w io.Writer, pxl Pxl, opts *EncodingOptions) error

func EncodeJpeg

func EncodeJpeg(w io.Writer, pxl Pxl, opts *EncodingOptions) error

func EncodePng

func EncodePng(w io.Writer, pxl Pxl, opts *EncodingOptions) error

func EncodeSvg

func EncodeSvg(w io.Writer, pxl Pxl, opts *EncodingOptions) error

func EncodeTxt

func EncodeTxt(w io.Writer, pxl Pxl, opts *EncodingOptions) error

func EncodeURL

func EncodeURL(pxl Pxl, opts *EncodingOptions) *url.URL

Types

type EncodingOptions

type EncodingOptions struct {
	Fg    color.NRGBA
	Bg    color.NRGBA
	Fc    rune
	Bc    rune
	Fps   int
	Scale int
}

type Pxl

type Pxl []uint64

func New

func New(rows int) Pxl

func (Pxl) Cols

func (pxl Pxl) Cols() int

func (Pxl) Get

func (pxl Pxl) Get(x, y int) bool

func (Pxl) Rows

func (pxl Pxl) Rows() int

func (Pxl) Set

func (pxl Pxl) Set(x, y int, val bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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