TWO CANS AVATAR CONVERTER THING

Warning: Do not run random javascript stuff you find on the internet unless you know what it's doing.
This little app does not save any data; it's completely local. I don't know how to do server side programming.

Step 1: Upload Image

Your image will automatically be converted to 32x32 pixels.

Step 2: Click convert

Step 3: Verify result and copy string

This string is an array of arrays which holds the hex (color) value of each pixel.

Step 4: Use dev console to set this variable to the string you generated~

Navigate to the avatar drawer on Two Cans and open the dev console (on chrome, press f12).

Go to the sources tab. Locate drawing_editor.js in the sidebar.

Replace this value:

With your string:

Make sure there's a semicolon at the end of the line, then CTRL-S to save the .js.

Step 5: Do something which will update the canvas

Draw a random dot with the pencil. It won't actually draw, just update the canvas to the image you loaded.

Step 6: Save or whatever

The main thing you want to do is get the array into the ctx.undoStack as the canvas will load the last thing on the stack when it updates.