uk.co.silentsoftware.config
Class SpectrumDefaults

java.lang.Object
  extended by uk.co.silentsoftware.config.SpectrumDefaults

public class SpectrumDefaults
extends java.lang.Object

ZX Spectrum constants


Field Summary
static int ATTRIBUTE_BLOCK_SIZE
          The size of Spectrum the colour "blocks" (8x8 pixels default)
static int COLUMNS
          The number of character colour columns
static java.util.Map<java.lang.Integer,java.lang.Integer[]> GIGASCREEN_ARGB
           
static int[] GIGASCREEN_COLOURS_ALL
          The Gigascreen persistance of vision colours generated by flashing two screens
static int[] GIGASCREEN_COLOURS_BRIGHT
          The bright Gigascreen persistance of vision colours (both screens bright)
static int[] GIGASCREEN_COLOURS_HALF_BRIGHT
          The half bright Gigascreen persistance of vision colours (either colour half bright)
static int ROWS
          The number of character colour rows
static int SCREEN_HEIGHT
          The spectrum screen height in pixels
static int SCREEN_HEIGHT_THIRD
          1/3 of the spectrum screen height in pixels
static int SCREEN_WIDTH
          The spectrum screen width in pixels
static java.util.Map<java.lang.Integer,java.lang.Integer> SPECTRUM_ARGB
          Mappings from RGB -> ZX Spectrum palette (technically this is a slightly intermediate step as the mappings are not all 1 to 1 with the Spectrum palette, but mappings to a bit set used by the SCR converter).
static java.util.Map<java.lang.Integer,java.awt.Color> SPECTRUM_COLORS
          Mappings from RGB -> Color (for caching common colours)
static int[] SPECTRUM_COLOURS_ALL
          All Spectrum colours
static int[] SPECTRUM_COLOURS_BRIGHT
          Spectrum's half bright set
static int[] SPECTRUM_COLOURS_HALF_BRIGHT
          Spectrum's primary colours
static int[] SPECTRUM_COLOURS_REDUCED_HALF_BRIGHT
          Spectrum's primary colours minus magenta and teal.
 
Constructor Summary
SpectrumDefaults()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE_BLOCK_SIZE

public static final int ATTRIBUTE_BLOCK_SIZE
The size of Spectrum the colour "blocks" (8x8 pixels default)

See Also:
Constant Field Values

SCREEN_WIDTH

public static final int SCREEN_WIDTH
The spectrum screen width in pixels

See Also:
Constant Field Values

SCREEN_HEIGHT

public static final int SCREEN_HEIGHT
The spectrum screen height in pixels

See Also:
Constant Field Values

SCREEN_HEIGHT_THIRD

public static final int SCREEN_HEIGHT_THIRD
1/3 of the spectrum screen height in pixels

See Also:
Constant Field Values

ROWS

public static final int ROWS
The number of character colour rows

See Also:
Constant Field Values

COLUMNS

public static final int COLUMNS
The number of character colour columns

See Also:
Constant Field Values

SPECTRUM_COLOURS_HALF_BRIGHT

public static final int[] SPECTRUM_COLOURS_HALF_BRIGHT
Spectrum's primary colours


SPECTRUM_COLOURS_REDUCED_HALF_BRIGHT

public static final int[] SPECTRUM_COLOURS_REDUCED_HALF_BRIGHT
Spectrum's primary colours minus magenta and teal.


SPECTRUM_COLOURS_BRIGHT

public static final int[] SPECTRUM_COLOURS_BRIGHT
Spectrum's half bright set


SPECTRUM_COLOURS_ALL

public static final int[] SPECTRUM_COLOURS_ALL
All Spectrum colours


GIGASCREEN_COLOURS_HALF_BRIGHT

public static final int[] GIGASCREEN_COLOURS_HALF_BRIGHT
The half bright Gigascreen persistance of vision colours (either colour half bright)


GIGASCREEN_COLOURS_BRIGHT

public static final int[] GIGASCREEN_COLOURS_BRIGHT
The bright Gigascreen persistance of vision colours (both screens bright)


GIGASCREEN_COLOURS_ALL

public static final int[] GIGASCREEN_COLOURS_ALL
The Gigascreen persistance of vision colours generated by flashing two screens


GIGASCREEN_ARGB

public static final java.util.Map<java.lang.Integer,java.lang.Integer[]> GIGASCREEN_ARGB

SPECTRUM_ARGB

public static final java.util.Map<java.lang.Integer,java.lang.Integer> SPECTRUM_ARGB
Mappings from RGB -> ZX Spectrum palette (technically this is a slightly intermediate step as the mappings are not all 1 to 1 with the Spectrum palette, but mappings to a bit set used by the SCR converter).


SPECTRUM_COLORS

public static final java.util.Map<java.lang.Integer,java.awt.Color> SPECTRUM_COLORS
Mappings from RGB -> Color (for caching common colours)

Constructor Detail

SpectrumDefaults

public SpectrumDefaults()