Drag the first 2 dots around and the script fills a square from one point to the other. Drag the center of the black square around and it draws a square in any size that can be changed using the "SQUARE SIZE" variable. I did this because I was bored and it might be useful in other projects.
All my work. Sorta was inspired by the "pen fill" block @griffpatch added to his scratch emulator.