maxogden/voxel-painter — pull request #12 by Psukhe (2013-09-11 23:58:26+00:00)
Title: Animation

Added frames for animation.
Press W to add a new frame, press Q to render the next frame. Pressing A will rotate the character.
Get differences between arrays of voxels, remove and add only the voxels we need instead of erasing and redrawing every voxel.
Modified addVoxel to accept params in order to remove some duplication.
Change color of wireFrame to be a darker version of whatever color the voxel is.

Probably needs some GUI.
Not exactly sure how this might affect sharing your critter.

8 Frame Animation Example:
http://localhost:8080/#C/2ecc713498db34495ee67e22ecf0f1cf9f9fffccccf0ff47e8e1cfede4e4f5bc6766bda3:A/fhihhachekhfachckhSfYeShaffShaffShVijSfahhSfahhSfahhYhSfffehdSfVijddfeYhYiYhachYhYiYhbeflThbdeiiSfahhSfahhSfahhSfYhShcbhSfahhSfahhSfahhSfahhSfahhSfahhSfeahhSfahhSfahhSfahhSfahhSfahhSfahhSfddhlafhSfahhYhSfahhSfachSfSfYhYhYhYhafjYhYcYhYheehfSfSfakiSfSfWhiYceifecihUhcefchhYfYfcffUhdkhhYfYfYfYfekehUhSheffhYhUfYfYfYfYfUhYiYfafeUhShYjYfYfejieYfYfefehYhYhchhYfYfchhYhcdfWhfahhehhfYhchdUfShUhShWfhUfeaieUfWhhWfhUffmhffUfcahUfXiehUfehhjYhYhYhYhedhfYhYhYhaheShShWieUfShfccfhUhcifUhfbciZSfaohSfehfhSfUfSheWhfShWffShdqflSfaWhSffpihbSfWfhSffbahlYffjifYUheeehYfchiUffdlfjShWffShXfflShaofShdecYSfWhhacfekhhacffkdhoSfafhSfYeYffjhhYSfceiUfUfYfejhhUh:A1/fhkihSfYeShaffShaffShVijSfahhSfahhSfahhYhSfffehdSfVijddfeYhYiYhachYhYiYhbeflThbdeiiSfahhSfahhSfahhSfYhShcbhSfahhSfahhSfahhSfahhSfahhSfahhSfeahhSfahhSfahhSfahhSfahhSfahhSfahhSfddhlafhSfahhYhSfahhSfachSfSfYhYhYhYhafjYhYcYhYheehfSfSfakiSfSfWhiYceifecihUhcefchhYfYfcffUhdkhhYfYfYfYfekehUhSheffhYhUfYfYfYfYfUhYiYfafeUhShYjYfYfejieYfYfefehYhYhchhYfYfchhYhcdfWhfahhehhfYhchdUfShUhShWfhUfeaieUfWhhWfhUffmhffUfcahUfXiehUfehhjYhYhYhYhedhfYhYhYhaheShShWieUfShfccfhUhcifUhfbciZYoSfYYdmadachekhfachdnkjUfeWhfUffqfhlaWffpihbUfdbalYffjifYUheeehYfchiUffdlfjUfVflaohedcfYhSfYfVhYYhcfhYhcfhYhedfjYfchfYfchfYfVfoYhfdndbYfUfYhephjYfUfYhVflYfaYdYf:A2/fhkihSfYeShaffShaffShVijSfahhSfahhSfahhYhSfffehdSfVijddfeYhYiYhachYhYiYhbeflThbdeiiSfahhSfahhSfahhSfYhShcbhSfahhSfahhSfahhSfahhSfahhSfahhSfeahhSfahhSfahhSfahhSfahhSfahhSfahhSfddhlafhSfahhYhSfahhSfachSfSfYhYhYhYhafjYhYcYhYheehfSfSfakiSfSfWhiYceifecihUhcefchhYfYfcffUhdkhhYfYfYfYfekehUhSheffhYhUfYfYfYfYfUhYiYfafeUhShYjYfYfejieYfYfefehYhYhchhYfYfchhYhcdfWhfahhehhfYhchdUfShUhShWfhUfeaieUfWhhWfhUffmhffUfcahUfXiehUfehhjYhYhYhYhedhfYhYhYhaheShShWieUfShfccfhUhcifUhfbciZYoaYfdmadachekhfachfdkfjUfdmcdUhaehUffdlfjUfflcfdYhcfhYhadjYfchfYfchfYfVfoYhfdndbYfUfYhephjYfUfYhVflYffdcdYYhVfoYffhhfYYfaelYfVfoYhaibYhcanYfchfYffphlbYhUfYfWifYffhdhlYh:A3/fhkihSfYeShaffShaffShVijSfahhSfahhSfahhYhSfffehdSfVijddfeYhYiYhachYhYiYhbeflThbdeiiSfahhSfahhSfahhSfYhShcbhSfahhSfahhSfahhSfahhSfahhSfahhSfeahhSfahhSfahhSfahhSfahhSfahhSfahhSfddhlafhSfahhYhSfahhSfachSfSfYhYhYhYhafjYhYcYhYheehfSfSfakiSfSfWhiYceifecihUhcefchhYfYfcffUhdkhhYfYfYfYfekehUhSheffhYhUfYfYfYfYfUhYiYfafeUhShYjYfYfejieYfYfefehYhYhchhYfYfchhYhcdfWhfahhehhfYhchdUfShUhShWfhUfeaieUfWhhWfhUffmhffUfcahUfXiehUfehhjYhYhYhYhedhfYhYhYhaheShShWieUfShfccfhUhcifUhfbciZYoSfYYdmadachekhfachfdkfjUfdmcdUhaehUffdlfjUfflcfdYhcfhYhadjYfchfYfchfYfVfoYhfihdYYhVfoYffknibUfVflaWffpihbUffYfflaohfdcfYYhadhYfdhfoYfajfYheiliYhdfhbYhUhYfaXdYhUfYfdhflYf:A4/fhihhachekhfachckhSfYeShaffShaffShVijSfahhSfahhSfahhYhSfffehdSfVijddfeYhYiYhachYhYiYhbeflThbdeiiSfahhSfahhSfahhSfYhShcbhSfahhSfahhSfahhSfahhSfahhSfahhSfeahhSfahhSfahhSfahhSfahhSfahhSfahhSfddhlafhSfahhYhSfahhSfachSfSfYhYhYhYhafjYhYcYhYheehfSfSfakiSfSfWhiYceifecihUhcefchhYfYfcffUhdkhhYfYfYfYfekehUhSheffhYhUfYfYfYfYfUhYiYfafeUhShYjYfYfejieYfYfefehYhYhchhYfYfchhYhcdfWhfahhehhfYhchdUfShUhShWfhUfeaieUfWhhWfhUffmhffUfcahUfXiehUfehhjYhYhYhYhedhfYhYhYhaheShShWieUfShfccfhUhcifUhfbciZSfaohSfehfhSfUfSheWhfShWffShdqflSfaWhSffpihbSfWfhSffbahlYffjifYUheeehYfchiUffdlfjShWffShXfflShaofShdecYSfWhhacfekhhacffkdhoSfafhSfYeYffjhhYSfceiUfUfYfejhhUh:A5/fhkihSfYeShaffShaffShVijSfahhSfahhSfahhYhSfffehdSfVijddfeYhYiYhachYhYiYhbeflThbdeiiSfahhSfahhSfahhSfYhShcbhSfahhSfahhSfahhSfahhSfahhSfahhSfeahhSfahhSfahhSfahhSfahhSfahhSfahhSfddhlafhSfahhYhSfahhSfachSfSfYhYhYhYhafjYhYcYhYheehfSfSfakiSfSfWhiYceifecihUhcefchhYfYfcffUhdkhhYfYfYfYfekehUhSheffhYhUfYfYfYfYfUhYiYfafeUhShYjYfYfejieYfYfefehYhYhchhYfYfchhYhcdfWhfahhehhfYhchdUfShUhShWfhUfeaieUfWhhWfhUffmhffUfcahUfXiehUfehhjYhYhYhYhedhfYhYhYhaheShShWieUfShfccfhUhcifUhfbciZSfaohSfchfUfeWhhUffqfflaWhfpifbUfeYhhUfVflaofdeeYachajfaehcjeUhacfekhhacffkdhoYfVhYeeifUfaihUhaeeYfchfYfUiYhdfdoShYhSfeifjYhdfiYYhUfYffkmdjYfUfYheWhjYhUfYffqfdlYfaYjYf:A6/fhkihSfYeShaffShaffShVijSfahhSfahhSfahhYhSfffehdSfVijddfeYhYiYhachYhYiYhbeflThbdeiiSfahhSfahhSfahhSfYhShcbhSfahhSfahhSfahhSfahhSfahhSfahhSfeahhSfahhSfahhSfahhSfahhSfahhSfahhSfddhlafhSfahhYhSfahhSfachSfSfYhYhYhYhafjYhYcYhYheehfSfSfakiSfSfWhiYceifecihUhcefchhYfYfcffUhdkhhYfYfYfYfekehUhSheffhYhUfYfYfYfYfUhYiYfafeUhShYjYfYfejieYfYfefehYhYhchhYfYfchhYhcdfWhfahhehhfYhchdUfShUhShWfhUfeaieUfWhhWfhUffmhffUfcahUfXiehUfehhjYhYhYhYhedhfYhYhYhaheShShWieUfShfccfhUhcifUhfbciZYoSfchfUfcfhUffechdacfekhhacfYhUfaihUhaeeYfchfYffjejoYhdfiYYhUfYffkmdjYfUfYheWhjYhUfYfdhflYffkcdYYfahfYfVfoYhShYfajkYhdfhYYhefifYhfikcoYhUfYfeXflYhdfibYhUfYfeiifYf:A7/fhkihSfYeShaffShaffShVijSfahhSfahhSfahhYhSfffehdSfVijddfeYhYiYhachYhYiYhbeflThbdeiiSfahhSfahhSfahhSfYhShcbhSfahhSfahhSfahhSfahhSfahhSfahhSfeahhSfahhSfahhSfahhSfahhSfahhSfahhSfddhlafhSfahhYhSfahhSfachSfSfYhYhYhYhafjYhYcYhYheehfSfSfakiSfSfWhiYceifecihUhcefchhYfYfcffUhdkhhYfYfYfYfekehUhSheffhYhUfYfYfYfYfUhYiYfafeUhShYjYfYfejieYfYfefehYhYhchhYfYfchhYhcdfWhfahhehhfYhchdUfShUhShWfhUfeaieUfWhhWfhUffmhffUfcahUfXiehUfehhjYhYhYhYhedhfYhYhYhaheShShWieUfShfccfhUhcifUhfbciZYoSfchfUfcfhUffechdacfekhhacfYhUfaihUhaeeYfchfYffjejoYhdfiYYhUfYffkmdjYfUfYheWhjYhUfYfdhflYffkcdYYfdhfoYffjjjYYhfalejeffhUffqfflaWhdhibUfVflaofdbcYYfakhYfdhfoYfaefYfenlfYf