very slow on scratch. you need to use turbowarp. (with the link below, without warp timer enabled it crashes) turbowarp link: https://turbowarp.org/1246717095?fps=60&stuck&hqpen&limitless&turbo if you are running this on turbowarp, you need to use full screen so it's the full resolution. if you exit full screen then go back, all the full resolution pixels will become low resolution.
thumbnail is unsharpened for better visibility iterates the function x_n+1=rx(1-x_n), the y is set to x, then it plots a little point on the screen for each iteration of x. the x position on the screen is set to r.