I don't have a perfect solution, but I think we should encourage people to use more jsfiddle and images. With respect to the former, this is especially so with new users who ask questions like this. For me to test this, I have to go to jsfiddle and set up a whole html environment with a canvas. It's not mission impossible, but it's something that would be easier for the OP to have done in the first place.
Also, I find questions with pictures are somewhat more attractive/useful: