v3ga Bits and Blobs

LiveCoding library


Live Coding 001 : font & mouse. from v3ga on Vimeo.

The video shows how to import a true type font and use it within the javascript code through the library object. Images are managed the same way, by drag’n'dropping files on the main window.

One can see a quick glimpse on how to handle mouse events by implementing the mouseMoved(x,y) function on the fly.

Tranformations and drawing syntax, as well as 2D/3D coordinates system, is of course inspired from Processing, though minor differences remain (see window.width and window.height for example). Also, you’ll notice the three main functions that are init, update and render. init() has to be called manually to load objects from the library or declare variables to be used through the whole script.

Hopefully I will release a version for Mac Intel at the beginning of February.

Links


No Comments Yet


There are no comments yet. You could be the first!

Leave a Comment

New year 2009 Pump up the Tube