Prev Demo
Mirror In Horizontal Form
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Mirror in horizontalform</title> </head> <body> <canvas id="myCanvas" width="500" height="200"></canvas> <script> var canvas = document.getElementById('myCanvas'); var context = canvas.getContext('2d'); context.translate(250, 50); context.scale(-1, 1); context.font = '30pt Calibri'; context.fillStyle = 'lime'; context.fillText('Tech', 50, 20); context.translate(-70, 50); context.font = '40pt Calibri'; context.fillStyle = 'green'; context.fillText('Funda', 100, 80); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output