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
Post a Comment