change palette scheme to integers from floats to save SRAM