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!
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!
1