ScratchData LogoScratchData
Back to Snow-Cannon_Test's profile

liang Barsky Clipper

SNSnow-Cannon_Test•Created May 28, 2016
liang Barsky Clipper
8
5
35 views
View on Scratch

Instructions

This is a line clipper. If you put the inputs for the top left and bottom right points, the clipper will clip the line and then render it if it is on the screen. If it is off the screen, it won't render it at all. This can speed up the rendering of a pen game by huge amounts, as well as cutting out the annoying scratch problem of warping lines. The blocks are inside.

Description

All by me/my dad. We looked up some math on Wikipedia and figured it out. Feel free to use with credit!

Project Details

Project ID111713894
CreatedMay 28, 2016
Last ModifiedOctober 10, 2017
SharedSeptember 11, 2017
Visibilityvisible
CommentsAllowed