-Read all- Needs to be in turbo mode to run faster, press shift and the green flag at the same time to turn on turbo mode. Press the green flag to start. The variables start of hidden, click the bottom left button to show or hide them. The top left one called c1/ size changes the size of any shape that doesn't use a gradient. The variables on the left control the gradient (m1) and y-intercept (c1) of the individual line or first side of the triangle. The variables on the right control the rest of the triangle. The gradient of the rays are the r1, r2 and r3. The gradient of the other triangle lines are the m2 and m3 and the y-intercepts are c2 and c3. Key binds L - Individual line S - Basic square X - Xtremely thick square D - Diamond C - Circle O - Thick O T - Triangle 1 - First edge 2 - Second edge 3 - Third Edge R - Just the rays E - Just the edges B - Both the rays and edges Triangle pre-sets (Press key to change all variables) Up arrow - Equilateral triangle Right arrow - Right angles triangle Left Arrow - Scalene triangle (first triangle I found) Down arrow - Isosceles triangle
I got this idea to graph these shapes using equations from one of Matt Parkers recent videos, on his youtube channel Stand-up Maths, called Is there an equation for a triangle? Link - https://www.youtube.com/watch?v=4K-Jx914NcQ If you want to know more about the maths behind it I recommend you go and watch the video. I used the first equation but since scratch doesn't have a sign function I used the absolute value of x dived by x, which may cause some issues as explained near the end of the video. I also used rounding to make the lines thicker since the resolution is so low. You can now also make quadrilaterals on a different project of mine (using the same mathematical principals) here: https://scratch.mit.edu/projects/617800879/