imaging

package
v0.0.0-...-aff6635 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertChrChannelBytesToBinaryStr

func ConvertChrChannelBytesToBinaryStr(channel []byte) string

func ConvertChrDataToImageData

func ConvertChrDataToImageData(chr []byte) [8][8]int

How a single CHR is represented:

  • Each CHR is 128 bits (16 bytes)
  • Each CHR is 8x8 pixels
  • Each pixel within a CHR is one of 4 colors
  • Each pixel within a CHR is 2 bits (0b00 = color0, 0b10 = color1, 0b01 = color2, 0b11 = color3)
  • The first 64 bits of the CHR represent the first color bit for each of the 8x8 pixels, starting from top-left, traversing horizontally through each of the 8 rows from left to right
  • The second 64 bits of the CHR represent the second color bit for each of the 8x8 pixels, starting from top-left, traversing horizontally through each of the 8 rows from left to right

func GenerateModernImgFromChrData

func GenerateModernImgFromChrData(data [8][8]int, targetImagePath string, scale int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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