diff options
author | Ian C <ianc@noddybox.co.uk> | 2020-07-17 08:47:56 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2020-07-17 08:47:56 +0000 |
commit | 539b374d35c8b1fa2ee860c863c83be227ab4937 (patch) | |
tree | 2c2c6f82080317318a1e44ee78f3935fc2330d4f | |
parent | 9b7f485577be49d1b87e6d928d1ca130c743d020 (diff) |
Added Spec Next 256 Colour Sprites to presets.
-rw-r--r-- | SpriteEd/Main.storyboard | 7 | ||||
-rw-r--r-- | SpriteEd/SpriteSet.cs | 7 | ||||
-rw-r--r-- | SpriteEd/SpriteSetController.cs | 535 |
3 files changed, 288 insertions, 261 deletions
diff --git a/SpriteEd/Main.storyboard b/SpriteEd/Main.storyboard index 0ac35fa..def562e 100644 --- a/SpriteEd/Main.storyboard +++ b/SpriteEd/Main.storyboard @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> -<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="16097" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS"> +<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS"> <dependencies> - <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="16097"/> + <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="16097.2"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> </dependencies> <scenes> @@ -264,6 +264,9 @@ <menuItem title="Generic Mono Character Set" tag="6" id="2RF-FM-OnM"> <modifierMask key="keyEquivalentModifierMask"/> </menuItem> + <menuItem title="Spectrum Next 256 Colour Sprites" tag="7" id="Pbo-x3-qxU"> + <modifierMask key="keyEquivalentModifierMask"/> + </menuItem> </items> </menu> <connections> diff --git a/SpriteEd/SpriteSet.cs b/SpriteEd/SpriteSet.cs index c472056..206b62d 100644 --- a/SpriteEd/SpriteSet.cs +++ b/SpriteEd/SpriteSet.cs @@ -63,7 +63,12 @@ namespace SpriteEd /// <summary> /// Generic mono character set. /// </summary> - MonoCharacterSet + MonoCharacterSet, + + /// <summary> + /// Spectrum Next 256 colour sprites. + /// </summary> + SpectrumNext256, } private const uint SET_SIZE = 256; diff --git a/SpriteEd/SpriteSetController.cs b/SpriteEd/SpriteSetController.cs index dd2ce75..05d1cf4 100644 --- a/SpriteEd/SpriteSetController.cs +++ b/SpriteEd/SpriteSetController.cs @@ -110,6 +110,274 @@ namespace SpriteEd OnPaletteStepper(m_PaletteStepper); } + private void SetSpecNextPalette() + { + m_palette = new Palette(256); + + // Taken from Spectrum Next sprite bitmap + // + m_palette[0] = new Colour(0x00, 0x00, 0x00); + m_palette[1] = new Colour(0x55, 0x00, 0x00); + m_palette[2] = new Colour(0xaa, 0x00, 0x00); + m_palette[3] = new Colour(0xff, 0x00, 0x00); + m_palette[4] = new Colour(0x00, 0x24, 0x00); + m_palette[5] = new Colour(0x55, 0x24, 0x00); + m_palette[6] = new Colour(0xaa, 0x24, 0x00); + m_palette[7] = new Colour(0xff, 0x24, 0x00); + m_palette[8] = new Colour(0x00, 0x48, 0x00); + m_palette[9] = new Colour(0x55, 0x48, 0x00); + m_palette[10] = new Colour(0xaa, 0x48, 0x00); + m_palette[11] = new Colour(0xff, 0x48, 0x00); + m_palette[12] = new Colour(0x00, 0x6c, 0x00); + m_palette[13] = new Colour(0x55, 0x6c, 0x00); + m_palette[14] = new Colour(0xaa, 0x6c, 0x00); + m_palette[15] = new Colour(0xff, 0x6c, 0x00); + m_palette[16] = new Colour(0x00, 0x90, 0x00); + m_palette[17] = new Colour(0x55, 0x90, 0x00); + m_palette[18] = new Colour(0xaa, 0x90, 0x00); + m_palette[19] = new Colour(0xff, 0x90, 0x00); + m_palette[20] = new Colour(0x00, 0xb4, 0x00); + m_palette[21] = new Colour(0x55, 0xb4, 0x00); + m_palette[22] = new Colour(0xaa, 0xb4, 0x00); + m_palette[23] = new Colour(0xff, 0xb4, 0x00); + m_palette[24] = new Colour(0x00, 0xd8, 0x00); + m_palette[25] = new Colour(0x55, 0xd8, 0x00); + m_palette[26] = new Colour(0xaa, 0xd8, 0x00); + m_palette[27] = new Colour(0xff, 0xd8, 0x00); + m_palette[28] = new Colour(0x00, 0xfc, 0x00); + m_palette[29] = new Colour(0x55, 0xfc, 0x00); + m_palette[30] = new Colour(0xaa, 0xfc, 0x00); + m_palette[31] = new Colour(0xff, 0xfc, 0x00); + m_palette[32] = new Colour(0x00, 0x00, 0x24); + m_palette[33] = new Colour(0x55, 0x00, 0x24); + m_palette[34] = new Colour(0xaa, 0x00, 0x24); + m_palette[35] = new Colour(0xff, 0x00, 0x24); + m_palette[36] = new Colour(0x00, 0x24, 0x24); + m_palette[37] = new Colour(0x55, 0x24, 0x24); + m_palette[38] = new Colour(0xaa, 0x24, 0x24); + m_palette[39] = new Colour(0xff, 0x24, 0x24); + m_palette[40] = new Colour(0x00, 0x48, 0x24); + m_palette[41] = new Colour(0x55, 0x48, 0x24); + m_palette[42] = new Colour(0xaa, 0x48, 0x24); + m_palette[43] = new Colour(0xff, 0x48, 0x24); + m_palette[44] = new Colour(0x00, 0x6c, 0x24); + m_palette[45] = new Colour(0x55, 0x6c, 0x24); + m_palette[46] = new Colour(0xaa, 0x6c, 0x24); + m_palette[47] = new Colour(0xff, 0x6c, 0x24); + m_palette[48] = new Colour(0x00, 0x90, 0x24); + m_palette[49] = new Colour(0x55, 0x90, 0x24); + m_palette[50] = new Colour(0xaa, 0x90, 0x24); + m_palette[51] = new Colour(0xff, 0x90, 0x24); + m_palette[52] = new Colour(0x00, 0xb4, 0x24); + m_palette[53] = new Colour(0x55, 0xb4, 0x24); + m_palette[54] = new Colour(0xaa, 0xb4, 0x24); + m_palette[55] = new Colour(0xff, 0xb4, 0x24); + m_palette[56] = new Colour(0x00, 0xd8, 0x24); + m_palette[57] = new Colour(0x55, 0xd8, 0x24); + m_palette[58] = new Colour(0xaa, 0xd8, 0x24); + m_palette[59] = new Colour(0xff, 0xd8, 0x24); + m_palette[60] = new Colour(0x00, 0xfc, 0x24); + m_palette[61] = new Colour(0x55, 0xfc, 0x24); + m_palette[62] = new Colour(0xaa, 0xfc, 0x24); + m_palette[63] = new Colour(0xff, 0xfc, 0x24); + m_palette[64] = new Colour(0x00, 0x00, 0x48); + m_palette[65] = new Colour(0x55, 0x00, 0x48); + m_palette[66] = new Colour(0xaa, 0x00, 0x48); + m_palette[67] = new Colour(0xff, 0x00, 0x48); + m_palette[68] = new Colour(0x00, 0x24, 0x48); + m_palette[69] = new Colour(0x55, 0x24, 0x48); + m_palette[70] = new Colour(0xaa, 0x24, 0x48); + m_palette[71] = new Colour(0xff, 0x24, 0x48); + m_palette[72] = new Colour(0x00, 0x48, 0x48); + m_palette[73] = new Colour(0x55, 0x48, 0x48); + m_palette[74] = new Colour(0xaa, 0x48, 0x48); + m_palette[75] = new Colour(0xff, 0x48, 0x48); + m_palette[76] = new Colour(0x00, 0x6c, 0x48); + m_palette[77] = new Colour(0x55, 0x6c, 0x48); + m_palette[78] = new Colour(0xaa, 0x6c, 0x48); + m_palette[79] = new Colour(0xff, 0x6c, 0x48); + m_palette[80] = new Colour(0x00, 0x90, 0x48); + m_palette[81] = new Colour(0x55, 0x90, 0x48); + m_palette[82] = new Colour(0xaa, 0x90, 0x48); + m_palette[83] = new Colour(0xff, 0x90, 0x48); + m_palette[84] = new Colour(0x00, 0xb4, 0x48); + m_palette[85] = new Colour(0x55, 0xb4, 0x48); + m_palette[86] = new Colour(0xaa, 0xb4, 0x48); + m_palette[87] = new Colour(0xff, 0xb4, 0x48); + m_palette[88] = new Colour(0x00, 0xd8, 0x48); + m_palette[89] = new Colour(0x55, 0xd8, 0x48); + m_palette[90] = new Colour(0xaa, 0xd8, 0x48); + m_palette[91] = new Colour(0xff, 0xd8, 0x48); + m_palette[92] = new Colour(0x00, 0xfc, 0x48); + m_palette[93] = new Colour(0x55, 0xfc, 0x48); + m_palette[94] = new Colour(0xaa, 0xfc, 0x48); + m_palette[95] = new Colour(0xff, 0xfc, 0x48); + m_palette[96] = new Colour(0x00, 0x00, 0x6c); + m_palette[97] = new Colour(0x55, 0x00, 0x6c); + m_palette[98] = new Colour(0xaa, 0x00, 0x6c); + m_palette[99] = new Colour(0xff, 0x00, 0x6c); + m_palette[100] = new Colour(0x00, 0x24, 0x6c); + m_palette[101] = new Colour(0x55, 0x24, 0x6c); + m_palette[102] = new Colour(0xaa, 0x24, 0x6c); + m_palette[103] = new Colour(0xff, 0x24, 0x6c); + m_palette[104] = new Colour(0x00, 0x48, 0x6c); + m_palette[105] = new Colour(0x55, 0x48, 0x6c); + m_palette[106] = new Colour(0xaa, 0x48, 0x6c); + m_palette[107] = new Colour(0xff, 0x48, 0x6c); + m_palette[108] = new Colour(0x00, 0x6c, 0x6c); + m_palette[109] = new Colour(0x55, 0x6c, 0x6c); + m_palette[110] = new Colour(0xaa, 0x6c, 0x6c); + m_palette[111] = new Colour(0xff, 0x6c, 0x6c); + m_palette[112] = new Colour(0x00, 0x90, 0x6c); + m_palette[113] = new Colour(0x55, 0x90, 0x6c); + m_palette[114] = new Colour(0xaa, 0x90, 0x6c); + m_palette[115] = new Colour(0xff, 0x90, 0x6c); + m_palette[116] = new Colour(0x00, 0xb4, 0x6c); + m_palette[117] = new Colour(0x55, 0xb4, 0x6c); + m_palette[118] = new Colour(0xaa, 0xb4, 0x6c); + m_palette[119] = new Colour(0xff, 0xb4, 0x6c); + m_palette[120] = new Colour(0x00, 0xd8, 0x6c); + m_palette[121] = new Colour(0x55, 0xd8, 0x6c); + m_palette[122] = new Colour(0xaa, 0xd8, 0x6c); + m_palette[123] = new Colour(0xff, 0xd8, 0x6c); + m_palette[124] = new Colour(0x00, 0xfc, 0x6c); + m_palette[125] = new Colour(0x55, 0xfc, 0x6c); + m_palette[126] = new Colour(0xaa, 0xfc, 0x6c); + m_palette[127] = new Colour(0xff, 0xfc, 0x6c); + m_palette[128] = new Colour(0x00, 0x00, 0x90); + m_palette[129] = new Colour(0x55, 0x00, 0x90); + m_palette[130] = new Colour(0xaa, 0x00, 0x90); + m_palette[131] = new Colour(0xff, 0x00, 0x90); + m_palette[132] = new Colour(0x00, 0x24, 0x90); + m_palette[133] = new Colour(0x55, 0x24, 0x90); + m_palette[134] = new Colour(0xaa, 0x24, 0x90); + m_palette[135] = new Colour(0xff, 0x24, 0x90); + m_palette[136] = new Colour(0x00, 0x48, 0x90); + m_palette[137] = new Colour(0x55, 0x48, 0x90); + m_palette[138] = new Colour(0xaa, 0x48, 0x90); + m_palette[139] = new Colour(0xff, 0x48, 0x90); + m_palette[140] = new Colour(0x00, 0x6c, 0x90); + m_palette[141] = new Colour(0x55, 0x6c, 0x90); + m_palette[142] = new Colour(0xaa, 0x6c, 0x90); + m_palette[143] = new Colour(0xff, 0x6c, 0x90); + m_palette[144] = new Colour(0x00, 0x90, 0x90); + m_palette[145] = new Colour(0x55, 0x90, 0x90); + m_palette[146] = new Colour(0xaa, 0x90, 0x90); + m_palette[147] = new Colour(0xff, 0x90, 0x90); + m_palette[148] = new Colour(0x00, 0xb4, 0x90); + m_palette[149] = new Colour(0x55, 0xb4, 0x90); + m_palette[150] = new Colour(0xaa, 0xb4, 0x90); + m_palette[151] = new Colour(0xff, 0xb4, 0x90); + m_palette[152] = new Colour(0x00, 0xd8, 0x90); + m_palette[153] = new Colour(0x55, 0xd8, 0x90); + m_palette[154] = new Colour(0xaa, 0xd8, 0x90); + m_palette[155] = new Colour(0xff, 0xd8, 0x90); + m_palette[156] = new Colour(0x00, 0xfc, 0x90); + m_palette[157] = new Colour(0x55, 0xfc, 0x90); + m_palette[158] = new Colour(0xaa, 0xfc, 0x90); + m_palette[159] = new Colour(0xff, 0xfc, 0x90); + m_palette[160] = new Colour(0x00, 0x00, 0xb4); + m_palette[161] = new Colour(0x55, 0x00, 0xb4); + m_palette[162] = new Colour(0xaa, 0x00, 0xb4); + m_palette[163] = new Colour(0xff, 0x00, 0xb4); + m_palette[164] = new Colour(0x00, 0x24, 0xb4); + m_palette[165] = new Colour(0x55, 0x24, 0xb4); + m_palette[166] = new Colour(0xaa, 0x24, 0xb4); + m_palette[167] = new Colour(0xff, 0x24, 0xb4); + m_palette[168] = new Colour(0x00, 0x48, 0xb4); + m_palette[169] = new Colour(0x55, 0x48, 0xb4); + m_palette[170] = new Colour(0xaa, 0x48, 0xb4); + m_palette[171] = new Colour(0xff, 0x48, 0xb4); + m_palette[172] = new Colour(0x00, 0x6c, 0xb4); + m_palette[173] = new Colour(0x55, 0x6c, 0xb4); + m_palette[174] = new Colour(0xaa, 0x6c, 0xb4); + m_palette[175] = new Colour(0xff, 0x6c, 0xb4); + m_palette[176] = new Colour(0x00, 0x90, 0xb4); + m_palette[177] = new Colour(0x55, 0x90, 0xb4); + m_palette[178] = new Colour(0xaa, 0x90, 0xb4); + m_palette[179] = new Colour(0xff, 0x90, 0xb4); + m_palette[180] = new Colour(0x00, 0xb4, 0xb4); + m_palette[181] = new Colour(0x55, 0xb4, 0xb4); + m_palette[182] = new Colour(0xaa, 0xb4, 0xb4); + m_palette[183] = new Colour(0xff, 0xb4, 0xb4); + m_palette[184] = new Colour(0x00, 0xd8, 0xb4); + m_palette[185] = new Colour(0x55, 0xd8, 0xb4); + m_palette[186] = new Colour(0xaa, 0xd8, 0xb4); + m_palette[187] = new Colour(0xff, 0xd8, 0xb4); + m_palette[188] = new Colour(0x00, 0xfc, 0xb4); + m_palette[189] = new Colour(0x55, 0xfc, 0xb4); + m_palette[190] = new Colour(0xaa, 0xfc, 0xb4); + m_palette[191] = new Colour(0xff, 0xfc, 0xb4); + m_palette[192] = new Colour(0x00, 0x00, 0xd8); + m_palette[193] = new Colour(0x55, 0x00, 0xd8); + m_palette[194] = new Colour(0xaa, 0x00, 0xd8); + m_palette[195] = new Colour(0xff, 0x00, 0xd8); + m_palette[196] = new Colour(0x00, 0x24, 0xd8); + m_palette[197] = new Colour(0x55, 0x24, 0xd8); + m_palette[198] = new Colour(0xaa, 0x24, 0xd8); + m_palette[199] = new Colour(0xff, 0x24, 0xd8); + m_palette[200] = new Colour(0x00, 0x48, 0xd8); + m_palette[201] = new Colour(0x55, 0x48, 0xd8); + m_palette[202] = new Colour(0xaa, 0x48, 0xd8); + m_palette[203] = new Colour(0xff, 0x48, 0xd8); + m_palette[204] = new Colour(0x00, 0x6c, 0xd8); + m_palette[205] = new Colour(0x55, 0x6c, 0xd8); + m_palette[206] = new Colour(0xaa, 0x6c, 0xd8); + m_palette[207] = new Colour(0xff, 0x6c, 0xd8); + m_palette[208] = new Colour(0x00, 0x90, 0xd8); + m_palette[209] = new Colour(0x55, 0x90, 0xd8); + m_palette[210] = new Colour(0xaa, 0x90, 0xd8); + m_palette[211] = new Colour(0xff, 0x90, 0xd8); + m_palette[212] = new Colour(0x00, 0xb4, 0xd8); + m_palette[213] = new Colour(0x55, 0xb4, 0xd8); + m_palette[214] = new Colour(0xaa, 0xb4, 0xd8); + m_palette[215] = new Colour(0xff, 0xb4, 0xd8); + m_palette[216] = new Colour(0x00, 0xd8, 0xd8); + m_palette[217] = new Colour(0x55, 0xd8, 0xd8); + m_palette[218] = new Colour(0xaa, 0xd8, 0xd8); + m_palette[219] = new Colour(0xff, 0xd8, 0xd8); + m_palette[220] = new Colour(0x00, 0xfc, 0xd8); + m_palette[221] = new Colour(0x55, 0xfc, 0xd8); + m_palette[222] = new Colour(0xaa, 0xfc, 0xd8); + m_palette[223] = new Colour(0xff, 0xfc, 0xd8); + m_palette[224] = new Colour(0x00, 0x00, 0xfc); + m_palette[225] = new Colour(0x55, 0x00, 0xfc); + m_palette[226] = new Colour(0xaa, 0x00, 0xfc); + m_palette[227] = new Colour(0xff, 0x00, 0xff); + m_palette[228] = new Colour(0x00, 0x24, 0xfc); + m_palette[229] = new Colour(0x55, 0x24, 0xfc); + m_palette[230] = new Colour(0xaa, 0x24, 0xfc); + m_palette[231] = new Colour(0xff, 0x24, 0xfc); + m_palette[232] = new Colour(0x00, 0x48, 0xfc); + m_palette[233] = new Colour(0x55, 0x48, 0xfc); + m_palette[234] = new Colour(0xaa, 0x48, 0xfc); + m_palette[235] = new Colour(0xff, 0x48, 0xfc); + m_palette[236] = new Colour(0x00, 0x6c, 0xfc); + m_palette[237] = new Colour(0x55, 0x6c, 0xfc); + m_palette[238] = new Colour(0xaa, 0x6c, 0xfc); + m_palette[239] = new Colour(0xff, 0x6c, 0xfc); + m_palette[240] = new Colour(0x00, 0x90, 0xfc); + m_palette[241] = new Colour(0x55, 0x90, 0xfc); + m_palette[242] = new Colour(0xaa, 0x90, 0xfc); + m_palette[243] = new Colour(0xff, 0x90, 0xfc); + m_palette[244] = new Colour(0x00, 0xb4, 0xfc); + m_palette[245] = new Colour(0x55, 0xb4, 0xfc); + m_palette[246] = new Colour(0xaa, 0xb4, 0xfc); + m_palette[247] = new Colour(0xff, 0xb4, 0xfc); + m_palette[248] = new Colour(0x00, 0xd8, 0xfc); + m_palette[249] = new Colour(0x55, 0xd8, 0xfc); + m_palette[250] = new Colour(0xaa, 0xd8, 0xfc); + m_palette[251] = new Colour(0xff, 0xd8, 0xfc); + m_palette[252] = new Colour(0x00, 0xfc, 0xfc); + m_palette[253] = new Colour(0x55, 0xfc, 0xfc); + m_palette[254] = new Colour(0xaa, 0xfc, 0xfc); + m_palette[255] = new Colour(0xff, 0xff, 0xff); + + m_PaletteSize.SelectItemWithTag((nint)m_palette.Size); + m_PaletteStepper.MaxValue = m_palette.Size - 1; + OnPaletteStepper(m_PaletteStepper); + } + partial void OnSetType(NSObject sender) { NSPopUpButton button = sender as NSPopUpButton; @@ -168,6 +436,14 @@ namespace SpriteEd m_DoubleWidth.State = NSCellStateValue.Off; m_DoubleHeight.State = NSCellStateValue.Off; break; + + case SpriteSet.SetType.SpectrumNext256: + SetSize(16, 16); + SetSpecNextPalette(); + m_CodePoints.SelectItem(0); + m_DoubleWidth.State = NSCellStateValue.Off; + m_DoubleHeight.State = NSCellStateValue.Off; + break; } } @@ -249,264 +525,7 @@ namespace SpriteEd break; case 256: - // Taken from Spectrum Next sprite bitmap - // - m_palette[0] = new Colour(0x00, 0x00, 0x00); - m_palette[1] = new Colour(0x55, 0x00, 0x00); - m_palette[2] = new Colour(0xaa, 0x00, 0x00); - m_palette[3] = new Colour(0xff, 0x00, 0x00); - m_palette[4] = new Colour(0x00, 0x24, 0x00); - m_palette[5] = new Colour(0x55, 0x24, 0x00); - m_palette[6] = new Colour(0xaa, 0x24, 0x00); - m_palette[7] = new Colour(0xff, 0x24, 0x00); - m_palette[8] = new Colour(0x00, 0x48, 0x00); - m_palette[9] = new Colour(0x55, 0x48, 0x00); - m_palette[10] = new Colour(0xaa, 0x48, 0x00); - m_palette[11] = new Colour(0xff, 0x48, 0x00); - m_palette[12] = new Colour(0x00, 0x6c, 0x00); - m_palette[13] = new Colour(0x55, 0x6c, 0x00); - m_palette[14] = new Colour(0xaa, 0x6c, 0x00); - m_palette[15] = new Colour(0xff, 0x6c, 0x00); - m_palette[16] = new Colour(0x00, 0x90, 0x00); - m_palette[17] = new Colour(0x55, 0x90, 0x00); - m_palette[18] = new Colour(0xaa, 0x90, 0x00); - m_palette[19] = new Colour(0xff, 0x90, 0x00); - m_palette[20] = new Colour(0x00, 0xb4, 0x00); - m_palette[21] = new Colour(0x55, 0xb4, 0x00); - m_palette[22] = new Colour(0xaa, 0xb4, 0x00); - m_palette[23] = new Colour(0xff, 0xb4, 0x00); - m_palette[24] = new Colour(0x00, 0xd8, 0x00); - m_palette[25] = new Colour(0x55, 0xd8, 0x00); - m_palette[26] = new Colour(0xaa, 0xd8, 0x00); - m_palette[27] = new Colour(0xff, 0xd8, 0x00); - m_palette[28] = new Colour(0x00, 0xfc, 0x00); - m_palette[29] = new Colour(0x55, 0xfc, 0x00); - m_palette[30] = new Colour(0xaa, 0xfc, 0x00); - m_palette[31] = new Colour(0xff, 0xfc, 0x00); - m_palette[32] = new Colour(0x00, 0x00, 0x24); - m_palette[33] = new Colour(0x55, 0x00, 0x24); - m_palette[34] = new Colour(0xaa, 0x00, 0x24); - m_palette[35] = new Colour(0xff, 0x00, 0x24); - m_palette[36] = new Colour(0x00, 0x24, 0x24); - m_palette[37] = new Colour(0x55, 0x24, 0x24); - m_palette[38] = new Colour(0xaa, 0x24, 0x24); - m_palette[39] = new Colour(0xff, 0x24, 0x24); - m_palette[40] = new Colour(0x00, 0x48, 0x24); - m_palette[41] = new Colour(0x55, 0x48, 0x24); - m_palette[42] = new Colour(0xaa, 0x48, 0x24); - m_palette[43] = new Colour(0xff, 0x48, 0x24); - m_palette[44] = new Colour(0x00, 0x6c, 0x24); - m_palette[45] = new Colour(0x55, 0x6c, 0x24); - m_palette[46] = new Colour(0xaa, 0x6c, 0x24); - m_palette[47] = new Colour(0xff, 0x6c, 0x24); - m_palette[48] = new Colour(0x00, 0x90, 0x24); - m_palette[49] = new Colour(0x55, 0x90, 0x24); - m_palette[50] = new Colour(0xaa, 0x90, 0x24); - m_palette[51] = new Colour(0xff, 0x90, 0x24); - m_palette[52] = new Colour(0x00, 0xb4, 0x24); - m_palette[53] = new Colour(0x55, 0xb4, 0x24); - m_palette[54] = new Colour(0xaa, 0xb4, 0x24); - m_palette[55] = new Colour(0xff, 0xb4, 0x24); - m_palette[56] = new Colour(0x00, 0xd8, 0x24); - m_palette[57] = new Colour(0x55, 0xd8, 0x24); - m_palette[58] = new Colour(0xaa, 0xd8, 0x24); - m_palette[59] = new Colour(0xff, 0xd8, 0x24); - m_palette[60] = new Colour(0x00, 0xfc, 0x24); - m_palette[61] = new Colour(0x55, 0xfc, 0x24); - m_palette[62] = new Colour(0xaa, 0xfc, 0x24); - m_palette[63] = new Colour(0xff, 0xfc, 0x24); - m_palette[64] = new Colour(0x00, 0x00, 0x48); - m_palette[65] = new Colour(0x55, 0x00, 0x48); - m_palette[66] = new Colour(0xaa, 0x00, 0x48); - m_palette[67] = new Colour(0xff, 0x00, 0x48); - m_palette[68] = new Colour(0x00, 0x24, 0x48); - m_palette[69] = new Colour(0x55, 0x24, 0x48); - m_palette[70] = new Colour(0xaa, 0x24, 0x48); - m_palette[71] = new Colour(0xff, 0x24, 0x48); - m_palette[72] = new Colour(0x00, 0x48, 0x48); - m_palette[73] = new Colour(0x55, 0x48, 0x48); - m_palette[74] = new Colour(0xaa, 0x48, 0x48); - m_palette[75] = new Colour(0xff, 0x48, 0x48); - m_palette[76] = new Colour(0x00, 0x6c, 0x48); - m_palette[77] = new Colour(0x55, 0x6c, 0x48); - m_palette[78] = new Colour(0xaa, 0x6c, 0x48); - m_palette[79] = new Colour(0xff, 0x6c, 0x48); - m_palette[80] = new Colour(0x00, 0x90, 0x48); - m_palette[81] = new Colour(0x55, 0x90, 0x48); - m_palette[82] = new Colour(0xaa, 0x90, 0x48); - m_palette[83] = new Colour(0xff, 0x90, 0x48); - m_palette[84] = new Colour(0x00, 0xb4, 0x48); - m_palette[85] = new Colour(0x55, 0xb4, 0x48); - m_palette[86] = new Colour(0xaa, 0xb4, 0x48); - m_palette[87] = new Colour(0xff, 0xb4, 0x48); - m_palette[88] = new Colour(0x00, 0xd8, 0x48); - m_palette[89] = new Colour(0x55, 0xd8, 0x48); - m_palette[90] = new Colour(0xaa, 0xd8, 0x48); - m_palette[91] = new Colour(0xff, 0xd8, 0x48); - m_palette[92] = new Colour(0x00, 0xfc, 0x48); - m_palette[93] = new Colour(0x55, 0xfc, 0x48); - m_palette[94] = new Colour(0xaa, 0xfc, 0x48); - m_palette[95] = new Colour(0xff, 0xfc, 0x48); - m_palette[96] = new Colour(0x00, 0x00, 0x6c); - m_palette[97] = new Colour(0x55, 0x00, 0x6c); - m_palette[98] = new Colour(0xaa, 0x00, 0x6c); - m_palette[99] = new Colour(0xff, 0x00, 0x6c); - m_palette[100] = new Colour(0x00, 0x24, 0x6c); - m_palette[101] = new Colour(0x55, 0x24, 0x6c); - m_palette[102] = new Colour(0xaa, 0x24, 0x6c); - m_palette[103] = new Colour(0xff, 0x24, 0x6c); - m_palette[104] = new Colour(0x00, 0x48, 0x6c); - m_palette[105] = new Colour(0x55, 0x48, 0x6c); - m_palette[106] = new Colour(0xaa, 0x48, 0x6c); - m_palette[107] = new Colour(0xff, 0x48, 0x6c); - m_palette[108] = new Colour(0x00, 0x6c, 0x6c); - m_palette[109] = new Colour(0x55, 0x6c, 0x6c); - m_palette[110] = new Colour(0xaa, 0x6c, 0x6c); - m_palette[111] = new Colour(0xff, 0x6c, 0x6c); - m_palette[112] = new Colour(0x00, 0x90, 0x6c); - m_palette[113] = new Colour(0x55, 0x90, 0x6c); - m_palette[114] = new Colour(0xaa, 0x90, 0x6c); - m_palette[115] = new Colour(0xff, 0x90, 0x6c); - m_palette[116] = new Colour(0x00, 0xb4, 0x6c); - m_palette[117] = new Colour(0x55, 0xb4, 0x6c); - m_palette[118] = new Colour(0xaa, 0xb4, 0x6c); - m_palette[119] = new Colour(0xff, 0xb4, 0x6c); - m_palette[120] = new Colour(0x00, 0xd8, 0x6c); - m_palette[121] = new Colour(0x55, 0xd8, 0x6c); - m_palette[122] = new Colour(0xaa, 0xd8, 0x6c); - m_palette[123] = new Colour(0xff, 0xd8, 0x6c); - m_palette[124] = new Colour(0x00, 0xfc, 0x6c); - m_palette[125] = new Colour(0x55, 0xfc, 0x6c); - m_palette[126] = new Colour(0xaa, 0xfc, 0x6c); - m_palette[127] = new Colour(0xff, 0xfc, 0x6c); - m_palette[128] = new Colour(0x00, 0x00, 0x90); - m_palette[129] = new Colour(0x55, 0x00, 0x90); - m_palette[130] = new Colour(0xaa, 0x00, 0x90); - m_palette[131] = new Colour(0xff, 0x00, 0x90); - m_palette[132] = new Colour(0x00, 0x24, 0x90); - m_palette[133] = new Colour(0x55, 0x24, 0x90); - m_palette[134] = new Colour(0xaa, 0x24, 0x90); - m_palette[135] = new Colour(0xff, 0x24, 0x90); - m_palette[136] = new Colour(0x00, 0x48, 0x90); - m_palette[137] = new Colour(0x55, 0x48, 0x90); - m_palette[138] = new Colour(0xaa, 0x48, 0x90); - m_palette[139] = new Colour(0xff, 0x48, 0x90); - m_palette[140] = new Colour(0x00, 0x6c, 0x90); - m_palette[141] = new Colour(0x55, 0x6c, 0x90); - m_palette[142] = new Colour(0xaa, 0x6c, 0x90); - m_palette[143] = new Colour(0xff, 0x6c, 0x90); - m_palette[144] = new Colour(0x00, 0x90, 0x90); - m_palette[145] = new Colour(0x55, 0x90, 0x90); - m_palette[146] = new Colour(0xaa, 0x90, 0x90); - m_palette[147] = new Colour(0xff, 0x90, 0x90); - m_palette[148] = new Colour(0x00, 0xb4, 0x90); - m_palette[149] = new Colour(0x55, 0xb4, 0x90); - m_palette[150] = new Colour(0xaa, 0xb4, 0x90); - m_palette[151] = new Colour(0xff, 0xb4, 0x90); - m_palette[152] = new Colour(0x00, 0xd8, 0x90); - m_palette[153] = new Colour(0x55, 0xd8, 0x90); - m_palette[154] = new Colour(0xaa, 0xd8, 0x90); - m_palette[155] = new Colour(0xff, 0xd8, 0x90); - m_palette[156] = new Colour(0x00, 0xfc, 0x90); - m_palette[157] = new Colour(0x55, 0xfc, 0x90); - m_palette[158] = new Colour(0xaa, 0xfc, 0x90); - m_palette[159] = new Colour(0xff, 0xfc, 0x90); - m_palette[160] = new Colour(0x00, 0x00, 0xb4); - m_palette[161] = new Colour(0x55, 0x00, 0xb4); - m_palette[162] = new Colour(0xaa, 0x00, 0xb4); - m_palette[163] = new Colour(0xff, 0x00, 0xb4); - m_palette[164] = new Colour(0x00, 0x24, 0xb4); - m_palette[165] = new Colour(0x55, 0x24, 0xb4); - m_palette[166] = new Colour(0xaa, 0x24, 0xb4); - m_palette[167] = new Colour(0xff, 0x24, 0xb4); - m_palette[168] = new Colour(0x00, 0x48, 0xb4); - m_palette[169] = new Colour(0x55, 0x48, 0xb4); - m_palette[170] = new Colour(0xaa, 0x48, 0xb4); - m_palette[171] = new Colour(0xff, 0x48, 0xb4); - m_palette[172] = new Colour(0x00, 0x6c, 0xb4); - m_palette[173] = new Colour(0x55, 0x6c, 0xb4); - m_palette[174] = new Colour(0xaa, 0x6c, 0xb4); - m_palette[175] = new Colour(0xff, 0x6c, 0xb4); - m_palette[176] = new Colour(0x00, 0x90, 0xb4); - m_palette[177] = new Colour(0x55, 0x90, 0xb4); - m_palette[178] = new Colour(0xaa, 0x90, 0xb4); - m_palette[179] = new Colour(0xff, 0x90, 0xb4); - m_palette[180] = new Colour(0x00, 0xb4, 0xb4); - m_palette[181] = new Colour(0x55, 0xb4, 0xb4); - m_palette[182] = new Colour(0xaa, 0xb4, 0xb4); - m_palette[183] = new Colour(0xff, 0xb4, 0xb4); - m_palette[184] = new Colour(0x00, 0xd8, 0xb4); - m_palette[185] = new Colour(0x55, 0xd8, 0xb4); - m_palette[186] = new Colour(0xaa, 0xd8, 0xb4); - m_palette[187] = new Colour(0xff, 0xd8, 0xb4); - m_palette[188] = new Colour(0x00, 0xfc, 0xb4); - m_palette[189] = new Colour(0x55, 0xfc, 0xb4); - m_palette[190] = new Colour(0xaa, 0xfc, 0xb4); - m_palette[191] = new Colour(0xff, 0xfc, 0xb4); - m_palette[192] = new Colour(0x00, 0x00, 0xd8); - m_palette[193] = new Colour(0x55, 0x00, 0xd8); - m_palette[194] = new Colour(0xaa, 0x00, 0xd8); - m_palette[195] = new Colour(0xff, 0x00, 0xd8); - m_palette[196] = new Colour(0x00, 0x24, 0xd8); - m_palette[197] = new Colour(0x55, 0x24, 0xd8); - m_palette[198] = new Colour(0xaa, 0x24, 0xd8); - m_palette[199] = new Colour(0xff, 0x24, 0xd8); - m_palette[200] = new Colour(0x00, 0x48, 0xd8); - m_palette[201] = new Colour(0x55, 0x48, 0xd8); - m_palette[202] = new Colour(0xaa, 0x48, 0xd8); - m_palette[203] = new Colour(0xff, 0x48, 0xd8); - m_palette[204] = new Colour(0x00, 0x6c, 0xd8); - m_palette[205] = new Colour(0x55, 0x6c, 0xd8); - m_palette[206] = new Colour(0xaa, 0x6c, 0xd8); - m_palette[207] = new Colour(0xff, 0x6c, 0xd8); - m_palette[208] = new Colour(0x00, 0x90, 0xd8); - m_palette[209] = new Colour(0x55, 0x90, 0xd8); - m_palette[210] = new Colour(0xaa, 0x90, 0xd8); - m_palette[211] = new Colour(0xff, 0x90, 0xd8); - m_palette[212] = new Colour(0x00, 0xb4, 0xd8); - m_palette[213] = new Colour(0x55, 0xb4, 0xd8); - m_palette[214] = new Colour(0xaa, 0xb4, 0xd8); - m_palette[215] = new Colour(0xff, 0xb4, 0xd8); - m_palette[216] = new Colour(0x00, 0xd8, 0xd8); - m_palette[217] = new Colour(0x55, 0xd8, 0xd8); - m_palette[218] = new Colour(0xaa, 0xd8, 0xd8); - m_palette[219] = new Colour(0xff, 0xd8, 0xd8); - m_palette[220] = new Colour(0x00, 0xfc, 0xd8); - m_palette[221] = new Colour(0x55, 0xfc, 0xd8); - m_palette[222] = new Colour(0xaa, 0xfc, 0xd8); - m_palette[223] = new Colour(0xff, 0xfc, 0xd8); - m_palette[224] = new Colour(0x00, 0x00, 0xfc); - m_palette[225] = new Colour(0x55, 0x00, 0xfc); - m_palette[226] = new Colour(0xaa, 0x00, 0xfc); - m_palette[227] = new Colour(0xff, 0x00, 0xff); - m_palette[228] = new Colour(0x00, 0x24, 0xfc); - m_palette[229] = new Colour(0x55, 0x24, 0xfc); - m_palette[230] = new Colour(0xaa, 0x24, 0xfc); - m_palette[231] = new Colour(0xff, 0x24, 0xfc); - m_palette[232] = new Colour(0x00, 0x48, 0xfc); - m_palette[233] = new Colour(0x55, 0x48, 0xfc); - m_palette[234] = new Colour(0xaa, 0x48, 0xfc); - m_palette[235] = new Colour(0xff, 0x48, 0xfc); - m_palette[236] = new Colour(0x00, 0x6c, 0xfc); - m_palette[237] = new Colour(0x55, 0x6c, 0xfc); - m_palette[238] = new Colour(0xaa, 0x6c, 0xfc); - m_palette[239] = new Colour(0xff, 0x6c, 0xfc); - m_palette[240] = new Colour(0x00, 0x90, 0xfc); - m_palette[241] = new Colour(0x55, 0x90, 0xfc); - m_palette[242] = new Colour(0xaa, 0x90, 0xfc); - m_palette[243] = new Colour(0xff, 0x90, 0xfc); - m_palette[244] = new Colour(0x00, 0xb4, 0xfc); - m_palette[245] = new Colour(0x55, 0xb4, 0xfc); - m_palette[246] = new Colour(0xaa, 0xb4, 0xfc); - m_palette[247] = new Colour(0xff, 0xb4, 0xfc); - m_palette[248] = new Colour(0x00, 0xd8, 0xfc); - m_palette[249] = new Colour(0x55, 0xd8, 0xfc); - m_palette[250] = new Colour(0xaa, 0xd8, 0xfc); - m_palette[251] = new Colour(0xff, 0xd8, 0xfc); - m_palette[252] = new Colour(0x00, 0xfc, 0xfc); - m_palette[253] = new Colour(0x55, 0xfc, 0xfc); - m_palette[254] = new Colour(0xaa, 0xfc, 0xfc); - m_palette[255] = new Colour(0xff, 0xff, 0xff); + SetSpecNextPalette(); break; } |