client

package
v0.0.0-...-978b3e6 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: AGPL-3.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 Color

type Color struct {
	R uint8
	G uint8
	B uint8
	A uint8
}

func (*Color) ToString

func (c *Color) ToString() string

type PixelflutClient

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

func NewPixelflutClient

func NewPixelflutClient(addr string) (*PixelflutClient, error)

func (*PixelflutClient) SetPixel

func (p *PixelflutClient) SetPixel(x, y int, color Color) error

func (*PixelflutClient) SetPixelString

func (p *PixelflutClient) SetPixelString(x, y int, color string) error

func (*PixelflutClient) Size

func (p *PixelflutClient) Size() (int, int, error)

func (*PixelflutClient) WriteFromChannel

func (p *PixelflutClient) WriteFromChannel(commandChannel <-chan WriteCommand)

type WriteCommand

type WriteCommand struct {
	X, Y  int
	Color Color
}

Jump to

Keyboard shortcuts

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