Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SpectrumPalette ¶ added in v0.3.0
Types ¶
type Colour ¶
type Colour struct { // ATTR is the original colour byte. Its bit numbers are: // - 7: FLASH flag // - 6: BRIGHT flag // - 3-5: PAPER colour // - 0-2: INK colour // INK/PAPER colour values range from 0-7 ATTR uint8 // IsPixel: indicates that the INK colour should be used IsPixel bool // UseFlashColour will output RGBA colour with the ink/paper swapped, // but only if the FLASH bit is also set UseFlashColour bool }
Colour represents a Spectrum pixel/attribute as an RGB colour value, and implements the Go color.Color interface.
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
Image is a ZX Spectrum compatible image implementation, which can be used with the standard Go image.Image interface: At(), Bounds(), ColorModel().
func (*Image) ColorModel ¶
ColorModel returns the image's color model U.S. English spelling used to match the image.Image interface
func (*Image) HasFlashingPixels ¶ added in v0.3.0
HasFlashingPixels returns true when the image has at least one pixel with the FLASH bit set.
func (*Image) SetFlashOutput ¶
SetFlashOutput will output an image with all FLASH colours on.
Click to show internal directories.
Click to hide internal directories.