ScratchData LogoScratchData
Back to papipupepappa's profile

No-Pen Polygon

PApapipupepappa•Created June 2, 2025
No-Pen Polygon
90
78
830 views
View on Scratch

Instructions

A semitransparent polygon with draggable corners, rendered without Pen :) Find out how it works here: https://scratch.mit.edu/projects/1187463401/

Description

To keep the code simple, I haven't used clones. Using separate sprites makes it very easy to move to or point towards a certain sprite, but it requires code to be repeated in each sprite. You could use clones instead, keeping track of their positions with a list, and point towards them using trigonometry. That would also allow you to dynamically change the number of vertices (corners). - - - Features - - - You can make any convex shape, as well as any concave shape as long as the reflex interior angle is less than 270°. Any other shapes will ruin the illusion ;) - - - Learn More - - - https://en.wikipedia.org/wiki/Polygon https://en.wikipedia.org/wiki/Convex_polygon https://en.wikipedia.org/wiki/Concave_polygon - - - Related projects - - - @grandpasp's project "0% Pen Filled Polygon" demonstrates the same basic method, but demonstrates a dynamic number of sides instead of draggable vertices: https://scratch.mit.edu/projects/1151364642

Project Details

Project ID1183863368
CreatedJune 2, 2025
Last ModifiedJune 16, 2025
SharedJune 4, 2025
Visibilityvisible
CommentsAllowed