return TYPE_GRADIENT.
Fixed mask example.
Added option of a html canvas as a layer.
Added example canvas as a mask layer.