ScratchData LogoScratchData
Back to squoop's profile

100% Pen Image Renderer (with scaling)

SQsquoop•Created July 21, 2021
100% Pen Image Renderer (with scaling)
23
20
222 views
View on Scratch

Instructions

Image renderer with scaling and dragging. Use Turbowarp: turbowarp.org/554916406?fps=60 Drag to move image, use the scroll wheel or up/down arrows to zoom, and press space to reset the image.

Description

This image renderer draws an image pixel by pixel to the screen. While my previous image renderer which just picked the closest pixel to each point on the screen, this one uses bilinear interpolation to find the values "between" pixels. This means the image is smoother when zoomed right in. Also, I added different resolutions so that you can drag the image without everything grinding to a halt. (There seems to be a bug in the script I wrote to convert the image file, so there are a few pixels missing in the top right corner.) Image from Unsplash.

Project Details

Project ID554916406
CreatedJuly 21, 2021
Last ModifiedJuly 25, 2021
SharedJuly 21, 2021
Visibilityvisible
CommentsAllowed