pouët.net

Go to bottom

WebGL through Html5

category: code [glöplog]
woah! thanks a million!! I'll give them a try
added on the 2012-07-01 18:05:44 by Navis Navis
Quote:

* canvas.getImageData(x,y,w,h);
* context.fillText(text,x,y,maxWdith);

Isn't it context.getImageData(x,y,w,h)?
added on the 2012-07-01 20:28:17 by mrdoob mrdoob
Ooopsy daisy, it is context.getImageData(x,y,w,h);

And as a side note, the maxWidth in fillText is optional.

Navis: I can only recommend you to check the spec of Canvas and the 2D Rendering Context it's really simple.
added on the 2012-07-01 20:54:51 by p01 p01

login

Go to top