Hey Dracos, I gave you some feedback about two hours ago in the topic about the color pink on the drawception forums. I was wondering if you might help me understand how to change the color using javascript, specifically through executing code in the location bar, or in firefox, in the javascript scratchpad. I'm not that familiar with Javascript or the DOM object model so I am confused about how to pass the drawApp.setColor('#0055AA') to the correct element. My goal is to get you to tell me how to change the color, and then to write an Ahk script for automated drawing pixel by pixel, you know, for educational purposes. I already cooked up a script for eight directional and 2:1 dimetric movement, so the automated drawing is what I've set my eyes on next.. also it would be very interesting to know how some people modify the canvas directly too...
I'll be totally stoked at whatever info you have, and definitely pm it if it's info on the canvas
drawApp.setColor() is telling the
drawApp class (which is an external js file) to run it's function setColor().
As long as your greasemonkey calls that function, it should work. Though you will have to embed that code somewhere on the page (i.e. in an <a> tag) and make sure you append your new HTML to the
unsafewindow. Don't work inside the sandbox, or those calls to the external scripts won't work.
(In getting that link for you, I had to load up a game to play, out of sheer luck I got "Worm fucks a tiny bird," so I
drew it. Took me 9 minutes and 48 seconds.
Game it's from.)