Watch as the Queer Pride Flag swings gloriously in the wind. If you like this project, propose it to be featured. For the 2024 Pride Month studio. This project uses a translated version of Bresenham's line drawing algorithm, originally from the link below: https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm To draw the flag, this project plots lines in two directions (along the pole and along the length of the flag), and rather than draw each line as it is plotted, it stores the plotted points to a pair of lists and plots a point at and 1 above each unique sum of the two line's points, at a 4x lower resolution than Scratch's maximum. The points are colored based on the pride flag's colors and their position along the pole-length line. The wind and waviness of the flag are managed by treating the end of the flag as a particle with gravity that is pushed to the side by a varying amount. It is then constrained to be a fixed distance away from the center of the pole, and has its velocity projected to be perpendicular to the position of the flag's tip. The varying horizontal push is generated by the following algorithm: wind_push = sin(wind_seed * 0.5 * τ) + 0.5 * sin(wind_seed * 2 * e) + 1.25 wind_seed += |wind_push| + 0.25 Note that the second part results in strong gusts of wind lasting for a shorter amount of time than weaker gusts, as wind_seed stays on smaller values for longer. At the start of the project, wind_seed is set to a random number between 0 and 10000. (τ is 2 * π, see The Tau Manifesto: https://tauday.com/tau_manifesto.pdf) For the Scratch Team: Please recognize Pride Month in stead of celebrating Wellness Month early. :\