ScratchData LogoScratchData
Back to ABC124816's profile

Image Crop and Focus (no pen!)

ABABC124816•Created May 1, 2024
Image Crop and Focus (no pen!)
5
5
26 views
View on Scratch

Instructions

Click and drag the white plus-shaped selectors to adjust the cropping rectangle. Click on the cropped image to change it.

Description

I managed to make a variable width and height cropper by just using a costume and a clone! The 4 selection points determine the cropping rectangle. If you want to crop a specific rectangle, type the x and y coordinates of its 4 corners in the 'cornerx' and 'cornery' lists respectively, in clockwise or anti-clockwise direction (after deleting the selection sprite.) NOTE: If you want a smooth boundary cropping rectangle, convert the black rectangle costume in the cropper to vector mode. It might become smaller or bigger due to the conversion, so after that change every mention of '32.5' in the cropper scripts to a close value to it, bigger if the crop is smaller than required, and vice versa if the crop is bigger than required.

Project Details

Project ID1011755537
CreatedMay 1, 2024
Last ModifiedFebruary 6, 2025
SharedMay 3, 2024
Visibilityvisible
CommentsAllowed