camera

package
v0.0.0-...-06eecd2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Camera

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

Camera represents an ASCII camera.

func New

func New(c *computer.Computer) (ret Camera)

New creates a new camera with a provided computer.

func (*Camera) CaptureImage

func (c *Camera) CaptureImage()

CaptureImage returns a string representation of the image captured.

func (*Camera) Image

func (c *Camera) Image() (ret string)

Image returns the state of the camera as a string.

func (*Camera) Intersections

func (c *Camera) Intersections() (ret []intmath.Point)

Intersections returns the points in the image where the scaffold intersects with itself.

func (*Camera) Notify

func (c *Camera) Notify() int

Notify wakes up all other robots and cleans them, returning the amount of dust cleaned.

Jump to

Keyboard shortcuts

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