ScratchData LogoScratchData
Back to papipupepappa's profile

Remix: Squircle

PApapipupepappa•Created January 6, 2023
Remix: Squircle
37
27
381 views
View on Scratch

Instructions

Play around with the slider :)

Description

Thanks to @esmartpants for the original project Squircle: https://scratch.mit.edu/projects/667336980 CHANGES IN THIS REMIX: ✦ Increased performance: ✧ It draws 356 line segments instead of 7400 dots. ✧ The variables "a" and "b" were added to avoid having to do the same operations twice each drawing loop, with "a" placed outside the loop to further reduce redundant calculations. ✧ The variable "s²" was added outside the loop to avoid having to calculate the value each drawing loop. ✦ The "squareness" is no longer used directly in the code. Instead, the logarithm of its value is used to set the variable "s". This makes the slider scale more linear. ✦ ... and some cosmetic changes.

Project Details

Project ID784439321
CreatedJanuary 6, 2023
Last ModifiedJanuary 6, 2023
SharedJanuary 6, 2023
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root