Furthermore, the canvas has no concept of "indexed color palettes" for images.
Every Canvas is based on 32 pixels (8 bit for R, G, B an A respectively).
So if you want to change the color of one pixel, you need to access that specific pixel in memory. No possibility to just change the palette.