开发者

How to draw picture in the text area of HTML?

开发者 https://www.devze.com 2022-12-18 15:32 出处:网络
I want to draw geometrical figure in the <textarea> of HTML pages, but I\'m facing difficulty in how to do that. Could anyone please tell 开发者_如何学Pythonme? You can use the HTML5 <canvas&

I want to draw geometrical figure in the <textarea> of HTML pages, but I'm facing difficulty in how to do that. Could anyone please tell 开发者_如何学Pythonme?


You can use the HTML5 <canvas> element and its javascript API to draw geometric figures in an HTML document. There are many examples and tutorials of its usage, but here is one I found this morning: Mozilla Canvas Tutorial


You can’t draw in HTML <textarea> elements. You can only put text in them. So the nearest you can get to drawing in them is ASCII art.

0

精彩评论

暂无评论...
验证码 换一张
取 消