IHYPRESS PROGRAMMING
HTML programs with code and output for beginners
c programming
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
HTML ❯ Canvas Element
<14>
<!DOCTYPE HTML> <html><head> <meta charset="UTF-8"> <title>HTML5 Canvas</title> </head> <body> <canvas id="canvas1" width="700" height="250" style="border:3px solid #ff0000;"> </canvas> <script> c = document.getElementById("canvas1"); ctx = c.getContext("2d"); ctx.fillStyle="#0000ff"; ctx.fillRect(50,100,250,100); ctx.font = "30px Arial"; ctx.font = "30px Verdana"; gradient=ctx.createLinearGradient(0,0,200,0); gradient.addColorStop("0","red"); gradient.addColorStop("0.5","green"); gradient.addColorStop("1.0","blue"); ctx.strokeStyle = gradient; ctx.strokeText("IHYPRESS.DE",10,50); </script> </body> </html>
Hergestellt in Deutschland / Made in Germany
HTML5 Canvas
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland