ScratchData LogoScratchData
Back to chooper-beta's profile

Move, Stretch & Rotate Rectangle [AMC #4]

CHchooper-beta•Created November 25, 2016
Move, Stretch & Rotate Rectangle [AMC #4]
19
13
302 views
View on Scratch

Instructions

[AMC 4] Template https://scratch.mit.edu/discuss/topic/227510/?page=1#post-2307976 Modify the template project to allow the user to move, resize, stretch and rotate a rectangle by dragging the coloured dots that define it. You may add data variables and/or lists to represent the corner, side, centre and rotation dots. (The template is very basic). User drags the Red centre dot to move the rectangle in any direction. User drags a Blue corner dot to resize the whole rectangle in proportion (ie. all four corners move). User drags a Green Dot to stretch just the selected side and the opposite side in proportion. User drags Purple Dot to rotate the rectangle. * The rotation makes the problem interesting as then resizing and stretching the rectangle is no longer trivial. * Another difficulty is that when a dot is dragged, eg. a side dot, the user will not move it along a perfect line to the new position of the side dot. You make your own rules/decisions about what happens to the dot positions as the mouse moves.

Description

Hi! This is my entry for AMC #4: https://scratch.mit.edu/discuss/topic/227510/ Credits: Triangle fill code by @TheLogFather: https://scratch.mit.edu/projects/55619918/

Project Details

Project ID132749821
CreatedNovember 25, 2016
Last ModifiedDecember 11, 2016
SharedNovember 27, 2016
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root