cbm

package
v0.0.0-...-20a4c11 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package cbm contains components for Commodore Business Machines.

Index

Constants

This section is empty.

Variables

View Source
var (
	Palette = []color.RGBA{
		color.RGBA{0x00, 0x00, 0x00, 0xff},
		color.RGBA{0xff, 0xff, 0xff, 0xff},
		color.RGBA{0x88, 0x00, 0x00, 0xff},
		color.RGBA{0xaa, 0xff, 0xee, 0xff},
		color.RGBA{0xcc, 0x44, 0xcc, 0xff},
		color.RGBA{0x00, 0xcc, 0x55, 0xff},
		color.RGBA{0x00, 0x00, 0xaa, 0xff},
		color.RGBA{0xee, 0xee, 0x77, 0xff},
		color.RGBA{0xdd, 0x88, 0x55, 0xff},
		color.RGBA{0x66, 0x44, 0x00, 0xff},
		color.RGBA{0xff, 0x77, 0x77, 0xff},
		color.RGBA{0x33, 0x33, 0x33, 0xff},
		color.RGBA{0x77, 0x77, 0x77, 0xff},
		color.RGBA{0xaa, 0xff, 0x66, 0xff},
		color.RGBA{0x00, 0x88, 0xff, 0xff},
		color.RGBA{0xbb, 0xbb, 0xbb, 0xff},
	}
)
View Source
var ScreenDecoder = func(code uint8) (rune, bool) {
	return decoder(code, petscii.Decoder)
}
View Source
var ScreenShiftedDecoder = func(code uint8) (rune, bool) {
	return decoder(code, petscii.ShiftedDecoder)
}

Functions

func CharGen

func CharGen(r *sdl.Renderer, data []uint8) (rcs.TileSheet, error)

Types

type VIC

type VIC struct {
	W       int32
	H       int32
	Texture *sdl.Texture

	BorderColor uint8
	BgColor     uint8
	// contains filtered or unexported fields
}

func NewVIC

func NewVIC(r *sdl.Renderer, mem *rcs.Memory, charData []uint8) (*VIC, error)

func (*VIC) Draw

func (v *VIC) Draw(r *sdl.Renderer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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