Código fuente del sitio web de edición de formularios
¡Es! DOCTYPE html gt
lthtml gt
lthead gt
lttitle gt lt/title gt;
lt/head gt;
ltbody gt
ltcanvas id = " mi lienzo " ancho = " 600 " alto = " 600 " estilo = " borde: 1px solid # 000000;" El navegador no admite la etiqueta de lienzo HTML5.
lt/canvas gt;
lt script gt
var c = document . CTX = c . obtener contexto(" 2d ");
CTX .comenzar ruta()
CTX . >ctx.fillRect(0, 0, 200, 200);
CTX .begin ruta();
ctx.arc(100, 100, 50, 0, 2 * Matemáticas .PI);
CTX .trazo();
lt/script gt; html gt;