commit 5(palette)

Added some functions about palette