Pattern -> palette