ScratchData LogoScratchData
Back to pkhead's profile

shadow render

PKpkhead•Created June 22, 2022
shadow render
77
61
947 views
View on Scratch

Instructions

press space to switch costumes this renders shadows by scanning through each pixel of the sprite, and storing in a list if the scanner touched the sprite or not. after this list has been constructed, it then renders a stretched version of the costume with pen, based on said list and the "shear" and "compress" variables. if the list says it touched the sprite at a point, then it will render it in shadow. it's kinda buggy though: it doesn't always get the sprite size correctly, shadow quality doesn't always work well, and the shadow gets warped when it's too far to the right. i'll fix those bugs later

Project Details

Project ID707800850
CreatedJune 22, 2022
Last ModifiedJune 23, 2022
SharedJune 22, 2022
Visibilityvisible
CommentsAllowed