title: 2D Context Canvas Transparent Prototype items
body: <p>I have a canvas that creates squares and fades them in, however I am unable to get them to fade out.</p>
  
  <p>I have created a pen here: <a href="https://codepen.io/randomsdfsdfsdf/pen/wyWZZr?editors=0010" rel="nofollow noreferrer">https://codepen.io/randomsdfsdfsdf/pen/wyWZZr?editors=0010</a></p>
  
  <p>On line 90, I am want to change the colour to transparent, so that the squares are fading out, rather than staying on the screen.
  It is possible to change the colour of the squares with <code>this.color = 'pink';</code>, however when using anything with transparency it does not use a transparent colour. I'm not sure why transparent doesn't work, or if I am explicitly doing something wrong. I also tried using <code>this.globalAlpha = 0;</code> underneath that, and it still does not set the Alpha channel for that item.</p>
  
  <p>Any help with this is appreciated.</p>