October 2016
Beginner to intermediate
709 pages
16h 52m
English
This recipe also uses canvas and JavaScript to draw the text and the effects in your browser. There is no direct method to make an inner-glow or inset-shadow effect using canvas, however, using the stroke method, you can simulate an inner shadow in your text.
This recipe starts with some already-written code. You can download this from Packt's Publishing's website. It is also the same code you created in the recipe, Making a text shadow with canvas. This code should be run on your local computer without any special web server. You can get the whole code online at the course website.
To begin, create a simple HTML page with a <canvas> element.
<html> <head> </head> <body> <canvas ...
Read now
Unlock full access