Prev Demo
Stroketext
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Stroketext</title> </head> <body> <canvas id="myCanvas" width="600" height="200"></canvas> <script> var canvas = document.getElementById('myCanvas'); var context = canvas.getContext('2d'); context.font = '30pt Calibri'; context.lineWidth = 1; context.strokeStyle = 'orange'; context.strokeText('TECHFUNDA', 25, 50); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output