function surface_get_palette(surface, amo){ if(!is_surface(surface)) return -1; var pal = []; return pal; }