Very much, thank you!
Though, now I have a new problem.
I got a canvas, a slider (Switch), and a field (Circle) with two images.
The Code for the canvas
on click pos do if me[pos] = colors.black Switch.value:Switch.value + 1 end end
And the Code for the slider
on change val do if Switch.value = 1 canvas1.paste[Circle.images[1]] else canvas1.paste[Circle.images[0]] end end
When a black pixel is clicked, it's supposed to change the value of Switch from 0 to 1 then paste the image of that value from Circle into canvas1. It does the second step, but not the third. And the slider works when clicking on it but not when changed by another widget.
Figured it out! Here's the code:
on drag pos do val:Switch.value if (me[pos] = colors.black) & (Switch.value = 0) Switch.value:Switch.value + 1 elseif (me[pos] = colors.black) Switch.value:Switch.value - 1 end Switch.event["change" val] end