ScratchData LogoScratchData
Back to nembence's profile

transparent triangle filler

NEnembence•Created March 4, 2025
transparent triangle filler
24
16
223 views
View on Scratch

Instructions

Click the stage to switch backdrop Drag the corners of the triangle [Sprite1: n] variable means how many right triangles it draws in one of the sides of the triangle [debug?] colors the sub-triangles differently and shows many variables 3 stamp mode draws only 3 triangles, but it has a large rectangle artifact.

Description

It exploits the bug with bounding boxes to draw axis-aligned right triangles, then it combines these triangles to make any triangle. https://scratch.mit.edu/projects/1134858950/ It needs to be stamped in order to work It's RAM usage is better than whirl-fisheye triangle renderers', as they need extremely large costumes while this needs extremely small costumes. Whirl-fisheye renderers are better in that their triangles can be textured Changelog: May 1, 2025 - changed "isosceles triangle" in the description to "right triangle" after looking at Wikipedia and seeing that this is its correct name (but I updated the changelog only at May 17) Mar 16, 2025 - changed triangle rounding algorithm to prevent rounding artifacts

Project Details

Project ID1142276276
CreatedMarch 4, 2025
Last ModifiedJune 4, 2025
SharedMarch 14, 2025
Visibilityvisible
CommentsAllowed