generates random perlin noise, but it repeats because my random function isn't good (i cant just use the scratch one because it needs to use a seed) i didn't actually make this for scratch, i made it to test something for a minecraft datapack im making, but i needed to figure out how to do the math, and i felt that scratch would be the best place to test it sliders: size: 1-10, how big each square is on the screen (just visual, allows you to fit different generations on screen) drawVectors: 0-1, boolean, whether or not the vectors (black lines) should be drawn (just visual) scale: 1-4, how big each unit square is (scale * 16) seed: 0-9999, random seed for the generation press the flag or space bar for normal generation (7 unit squares) press "a" to generate a lot (16*16 unit squares) - only use size 1, scale 1 with this! i recommend to turn off the vectors as well
https://www.youtube.com/watch?v=MJ3bvCkHJtE https://en.wikipedia.org/wiki/Dot_product https://en.wikipedia.org/wiki/Linear_interpolation