' r1c0
Dim ctx1 As MashCanvas = Skeleton("fillStyle", "ctx1")
ctx1.fillStyle = "#ff0000"
ctx1.fillRect1(20, 20, 150, 100)
'r1c1
Dim ctx2 As MashCanvas = Skeleton("fillStyle", "ctx2")
Dim my_gradient As MashCanvas = ctx2.createLinearGradient1(0, 0, 0, 170)
my_gradient.addColorStop1(0, "black")
my_gradient.addColorStop1(1, "white")
ctx2.fillStyle = my_gradient.Context
ctx2.fillRect1(20, 20, 150, 100)
'r1c2
Dim ctx3 As MashCanvas = Skeleton("fillStyle", "ctx3")
Dim my_gradient1 As MashCanvas = ctx3.createLinearGradient1(0, 0, 170, 0)
my_gradient1.addColorStop1(0, "black")
my_gradient1.addColorStop1(1, "white")
ctx3.fillStyle = my_gradient1.Context
ctx3.fillRect1(20, 20, 150, 100)
'r1c3
Dim ctx4 As MashCanvas = Skeleton("fillStyle", "ctx4")
Dim my_gradient3 As MashCanvas = ctx4.createLinearGradient1(0, 0, 170, 0)
my_gradient3.addColorStop1(0, "black")
my_gradient3.addColorStop1(0.5, "red")
my_gradient3.addColorStop1(1, "white")
ctx4.fillStyle = my_gradient3.Context
ctx4.fillRect1(20, 20, 150, 100)
'r1c4
Dim img As BANanoElement = body.Append($"<img id="lamp"></img>"$).Get("#lamp")
img.SetAttr("src", "./assets/img_lamp.jpg")
img.SetAttr("width", 32)
img.SetAttr("height", 32)
'
Canvas("createPattern1", "ctx5")
'
Dim b1 As BANanoElement = body.Append($"<button id="b1">Repeat</button>"$).Get("#b1")
b1.On("click", Me, "brepeat")