ScratchData LogoScratchData
Back to PaulSinnett's profile

The 2D matrix

PAPaulSinnett•Created October 28, 2013
The 2D matrix
0
0
76 views
View on Scratch

Instructions

Draw a shape by clicking with the mouse one point at a time. When you're done, click on the done button. Then adjust scale and rotation and click on the draw button. Have fun!

Description

This project stores pairs of mouse X and Y values in a list. It then multiplies each pair of points with a 2 by 2 matrix to transform the scale and rotation. Finally, it uses the pen to draw out the points. Note that scale and rotation are percentages: 0 to 100% for scale and 0 to 100% of a turn for rotation.

Project Details

Project ID13653514
CreatedOctober 28, 2013
Last ModifiedOctober 28, 2013
SharedOctober 28, 2013
Visibilityvisible
CommentsAllowed