Loading...
Logo
Processing Forum
It's easy to grab a horizontal or vertical line of pixels from a PImage object by using the get() function. But I need to be able to grab a line of pixels from a PImage when the line can be at any arbitrary angle...vertical, horizontal, diagonal, or anywhere in between.

I'd like to avoid doing a bunch of math and then pulling individual pixels out of the pixel array and assembling them into the line. Is there an easy way?

Thanks!

Replies(1)

Hey!

I *just* found that this question came up before! Off to try the answers posted at http://forum.processing.org/topic/get-at-an-angle-question