Wednesday , 14 November 2018
Home / Tag Archives: top

Tag Archives: top

Global Properties – Advanced JavaScript Tutorial

Global Properties

There are 2 global properties you can use to apply to your drawings. This the alpha and composition properties. They can truly effect the outcome of all your drawings. Alpha Clear your script and add this bit of code. [crayon-5bebfea885ab3440557203/] In the example above, we draw a rectangle with the default settings. Next, we change the globalAlpha property. This property …

Read More »

Text API – Advanced JavaScript Tutorial

Text API

In this tutorial, we’ll take a look at how to add text to our canvas. It’s actually quite simple. You’re given many options to set up how the text appears. Let’s update our script to this. [crayon-5bebfea886c41739330946/] There are 2 methods to add text to the canvas. They are the fillText() and strokeText() methods. Both of these methods have the …

Read More »