Credit to @Ricky-Jan's "Fast Pen Rect Filler v2": https://scratch.mit.edu/projects/1028237122/ for all the code. I just wanted to know how to do things like this. I also think its cool how this can make rectangles with rounded edges.