ScratchData LogoScratchData
Back to TheLogFather's profile

Raster 'ghosted' tri-fill performance test

THTheLogFather•Created May 8, 2015
Raster 'ghosted' tri-fill performance test
66
48
1886 views
View on Scratch

Description

The new pen alpha feature allows drawing with semi-transparency. However, it's not easy to get a uniform transparency because of the 'overlap problem' - if you draw over the same region twice, you get 'double-strength' opacity. The triangle fill here uses a rastering method to draw only horizontal lines that don't overlap each other, thus ensuring a uniform fill. Interestingly, Flash renders horizontal lines *much* quicker than vertical (but it makes no difference to the actual script execution time). Consequently, the performance isn't a total flop when compared to the really fast hybrid method (from which this project was remixed).

Project Details

Project ID61122192
CreatedMay 8, 2015
Last ModifiedOctober 19, 2017
SharedMay 8, 2015
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root