| if (pci < 0 || pci >= 4){ | if (pci < 0 || pci >= 4){ | ||||
| throw new RangeError("Palette color index is out of bounds."); | throw new RangeError("Palette color index is out of bounds."); | ||||
| } | } | ||||
| return NESPalette.SystemColor(this.get_palette_syscolor_index(p, pci)); | |||||
| return NESPalette.SystemColor[this.get_palette_syscolor_index(p, pci)]; | |||||
| } | } | ||||
| /** | /** |