colour

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package colour defines all the default Nimbus colour settings

Index

Constants

This section is empty.

Variables

View Source
var (
	PhysicalColours = []color.RGBA{
		{0x00, 0x00, 0x00, 0xff},
		{0x00, 0x00, 0xaa, 0xff},
		{0xaa, 0x00, 0x00, 0xff},
		{0xaa, 0x00, 0xaa, 0xff},
		{0x00, 0xaa, 0x00, 0xff},
		{0x00, 0xaa, 0xaa, 0xff},
		{0xaa, 0x54, 0x00, 0xff},
		{0xaa, 0xaa, 0xaa, 0xff},
		{0x54, 0x54, 0x54, 0xff},
		{0x54, 0x54, 0xff, 0xff},
		{0xff, 0x54, 0x54, 0xff},
		{0xff, 0x54, 0xff, 0xff},
		{0x54, 0xff, 0x54, 0xff},
		{0x54, 0xff, 0xff, 0xff},
		{0xff, 0xff, 0x54, 0xff},
		{0xff, 0xff, 0xff, 0xff},
	}
	DefaultLowResColours = []CltElement{
		{FirstPhysicalColour: 0, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 1, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 2, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 3, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 4, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 5, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 6, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 7, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 8, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 9, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 10, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 11, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 12, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 13, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 14, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 15, FlashSpeed: 0, SecondPhysicalColour: 0},
	}
	DefaultHighResColours = []CltElement{
		{FirstPhysicalColour: 0, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 4, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 10, FlashSpeed: 0, SecondPhysicalColour: 0},
		{FirstPhysicalColour: 15, FlashSpeed: 0, SecondPhysicalColour: 0},
	}
	LineStyles = [][]int{
		{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
		{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
		{1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0},
		{1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0},
		{1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0},
		{1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0},
		{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
	}
	DefaultLowResDithers = [][4][4]int{
		{
			{0, 1, 0, 1},
			{1, 0, 1, 0},
			{0, 1, 0, 1},
			{1, 0, 1, 0},
		},
		{
			{0, 2, 0, 2},
			{2, 0, 2, 0},
			{0, 2, 0, 2},
			{2, 0, 2, 0},
		},
		{
			{0, 3, 0, 3},
			{3, 0, 3, 0},
			{0, 3, 0, 3},
			{3, 0, 3, 0},
		},
		{
			{1, 2, 1, 2},
			{2, 1, 2, 1},
			{1, 2, 1, 2},
			{2, 1, 2, 1},
		},
		{
			{1, 3, 1, 3},
			{3, 1, 3, 1},
			{1, 3, 1, 3},
			{3, 1, 3, 1},
		},
		{
			{2, 3, 2, 3},
			{3, 2, 3, 2},
			{2, 3, 2, 3},
			{3, 2, 3, 2},
		},
		{
			{15, 0, 15, 0},
			{0, 15, 0, 15},
			{15, 0, 15, 0},
			{0, 15, 0, 15},
		},
		{
			{15, 1, 15, 1},
			{1, 15, 1, 15},
			{15, 1, 15, 1},
			{1, 15, 1, 15},
		},
		{
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
		},
		{
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
		},
		{
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
		},
		{
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
		},
		{
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
		},
		{
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
		},
		{
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
		},
		{
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
		},
	}
	DefaultHighResDithers = [][4][4]int{
		{
			{0, 1, 0, 1},
			{1, 0, 1, 0},
			{0, 1, 0, 1},
			{1, 0, 1, 0},
		},
		{
			{0, 2, 0, 2},
			{2, 0, 2, 0},
			{0, 2, 0, 2},
			{2, 0, 2, 0},
		},
		{
			{1, 2, 1, 2},
			{2, 1, 2, 1},
			{1, 2, 1, 2},
			{2, 1, 2, 1},
		},
		{
			{3, 0, 3, 0},
			{0, 3, 0, 3},
			{3, 0, 3, 0},
			{0, 3, 0, 3},
		},
		{
			{3, 2, 3, 2},
			{2, 3, 2, 3},
			{3, 2, 3, 2},
			{2, 3, 2, 3},
		},
		{
			{3, 1, 3, 1},
			{1, 3, 1, 3},
			{3, 1, 3, 1},
			{1, 3, 1, 3},
		},
		{
			{3, 1, 3, 2},
			{1, 3, 2, 3},
			{2, 3, 1, 3},
			{3, 2, 3, 1},
		},
		{
			{1, 3, 1, 2},
			{3, 1, 2, 1},
			{2, 1, 3, 1},
			{1, 2, 1, 3},
		},
		{
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
		},
		{
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
		},
		{
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
		},
		{
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
		},
		{
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
		},
		{
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
		},
		{
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
		},
		{
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
			{0, 0, 0, 0},
		},
	}
	DefaultHatchings = [][16][16]int{
		{

			{1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1},
			{1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1},
			{1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1},
			{1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1},
			{1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0},
			{0, 1, 0, 0, 0, 1, 1, 1, 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, 0, 0},
			{0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0},
			{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
			{0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1},
			{0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1},
			{0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1},
			{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
			{0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0},
			{0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0},
			{0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0},
		},
	}
	DefaultPolymarkers = [][][2]int{
		{

			[2]int{0, 0},
			[2]int{0, 0},
			[2]int{-128, -128},
		},
		{

			[2]int{0, -3},
			[2]int{0, 3},
			[2]int{-128, 0},
			[2]int{-3, 0},
			[2]int{3, 0},
			[2]int{-128, -128},
		},
		{

			[2]int{0, -3},
			[2]int{0, 3},
			[2]int{-128, 0},
			[2]int{-3, 0},
			[2]int{3, 0},
			[2]int{-128, 0},

			[2]int{-3, -3},
			[2]int{3, 3},
			[2]int{-128, 0},
			[2]int{3, -3},
			[2]int{-3, 3},
			[2]int{-128, -128},
		},
		{

			[2]int{-3, -1},
			[2]int{-3, 1},
			[2]int{-1, 3},
			[2]int{1, 3},
			[2]int{3, 1},
			[2]int{3, -1},
			[2]int{1, -3},
			[2]int{-1, -3},
			[2]int{-3, -1},
			[2]int{-128, -128},
		},
		{

			[2]int{-3, -3},
			[2]int{3, 3},
			[2]int{-128, 0},
			[2]int{3, -3},
			[2]int{-3, 3},
			[2]int{-128, -128},
		},
	}
)

Functions

This section is empty.

Types

type CltElement

type CltElement struct {
	FirstPhysicalColour  int
	FlashSpeed           int
	SecondPhysicalColour int
}

CltElement represents an element in the colour lookup table

Jump to

Keyboard shortcuts

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