Is there any tutorial on how to create a image and gradient fill it like the flag in this web site
http://www.alterdata.com.br/alterdat...deEstamos.aspx

I believe the script that does it is this: https://images.alterdata.com.br/Scri...ao_brasil_2.js

but I want some basic tutorial to start, maybe filling a rectangleor an easyer shape.