The Amiga boing ball, as seen here http://www.youtube.com/watch?v=-ga41edXw3A, although this time in actual 3D: a camera rotation instead of a palette rotation.
1k is much less than I thought!
Original source is already adapted so that the Google closure minifier can have a go at it, but it may be useful.