ScratchData LogoScratchData
Back to ChromeCat_test's profile

fast scan line triangle fill

CHChromeCat_test•Created August 29, 2021
fast scan line triangle fill
14
11
261 views
View on Scratch

Instructions

A fast scan line fill. This improves upon other scan fills by determining the the hypotenuse then drawing the scan lines parallel to the hypotenuse. This requires the minimum number of scan lines to fill the triangle.

Description

Unfortunately, scratch doesn't like it when it draw 1px lines at angle other than aligned with the pixels of the screen and so I had to do some strange stuff to remedy that -- Might use this in stamped tri fill v4--

Project Details

Project ID564772854
CreatedAugust 29, 2021
Last ModifiedJune 19, 2025
SharedAugust 30, 2021
Visibilityvisible
CommentsAllowed