You can now have a bit of a messabout with DrawLib* live without downloading anything! Thanks to https://ace.c9.io/ which I've used for the syntax highlighted code editor. Things are a bit rough right now and you may spot issues, but progress is being made each day! I've also laid out the reference page better, I think. *DrawLib will be being renamed something else sooon
Bit by bit it's coming together. I thought it would be handy, initially for myself while developing this, to have an FPS counter and buttons for switching between embed, fill window and full screen, and testing those things work. Then I thought why not make that a feature! So now it is. You can add a quick FPS counter with dl.showFPS() and buttons for embed/fill window/full screen with dl.showDisplayModeButtons().
These are just design for debugging/speed, but you'll be able to make your own custom FPS counter and switch display modes programmatically with your own buttons/UI etc too. Was gonna add the counter/buttons to all the examples thus far but I've gotten too tired lol. First thing in the morning! *End of spam.*
Whew! Just finished getting setFullScreen( true/false ), toggleFullScreen(), mouseX() and mouseY() working. Had to deal with game-co-ordinates, window/HTML co-ordinates, ratios, scrollbars, but got there in the end and I think it's pretty solid now.
Also, I'll be changing the name before V1 due to DrawLib being a pretty common name for various libs. But changing the name is a low priority.
Thanks whoever did that! We have a silent warrior, defending the honour of tea. xD