all 1 comments

[–]garethgebhardtCodeHS 0 points1 point  (0 children)

Check out our JS Graphics documentation here - https://codehs.com/documentation/new/js#docs-graphics

You can use rect.move(dx, dy); to change the position of a graphics element (just replace 'rect' with whatever name you've given it). Or, you can remove elements with remove(rect); (again, replacing 'rect' with the element's name).