javascript - HTML5 Canvas not displaying text -



javascript - HTML5 Canvas not displaying text -

i'm learning game dev javascript, wanted utilize html5 canvas draw on screen. problem can't display text. can see code here (you might greeted prompt asking name chatracter) http://jsfiddle.net/lamc3/

essentially used:

canx.font = '80pt helvetica'; canx.filltext(player.getname(),100, 100);

with canx beingness context of canvas has same dimensions viewport.

if knows why, please allow me know.

you're drawing text in same colour background, set fillstyle new, e.g.

canx.fillstyle = '#ffffff';

javascript html5 canvas

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -