ScratchData LogoScratchData
Back to crkcity's profile

math patterns (stripes, swirls, plaid)

CRcrkcity•Created September 16, 2019
math patterns (stripes, swirls, plaid)
2
2
33 views
View on Scratch

Instructions

Click on a button. Then click the green Flag to see the pattern resulting. These buttons set different math functions (x times y, and so on). They produce different color patterns (stripes, plaid, swirl, or a star-like pattern).

Description

The "x" button sets the color to equal the x coordinate. (colors repeat over and over in Scratch, like rainbows over and over). The "x * y" button sets color to the x coordinate multiplied by the y coordinate, making hyperbolas every time the color repeats. Can you see why this results in hyperbolas (like several mirror image parabolas)? The "x+1, x-1" button makes colors expand out in a plaid pattern by adding 1 to each new row. It creates a diagonal checkerboard (plaid, or Tartan) pattern. The x/y button divides the x position by the y position, resulting in a cross-like or star-like pattern. The "scale" slider makes the colors repeat less often, if you set it to less than one. It lets you make the patterns larger, or magnified, zooming in.Stripes sets color to be the x position. (The program draws one pixel at a time, which would be very slow if we refreshed the screen after each pixel, but we turned off "screen refresh" in the block commands that repeat row and column drawing procedures).

Project Details

Project ID329320351
CreatedSeptember 16, 2019
Last ModifiedDecember 14, 2021
SharedSeptember 17, 2019
Visibilityvisible
CommentsAllowed