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.
精彩评论