Search code snippets tagged "masks"

These snippets match the tag "masks."

Latest snippets
maskedLine 1.0 December 11, 2017 03:33
JJ2+ has the maskedHLine and maskedVLine functions (and their derivatives) but those are only useful if you're checking a straight line. This function takes two arbitrary points (x0, y0) and (x1, y1) as arguments and checks if any pixel on a straight line between them is masked.