Jump to content

Recommended Posts

Posted

Hello, 

I would want to know if there is a easy / fast solution to check if a color exist on a line.
I got two point, P1 (x:780, y:1280) and P2 (x: 1065, y:203) and I'm looking for the Blue color position (see below)

image.png.941e10a88499c772c105d2ed1544ec83.png

On the purple line From P1 to P2 I want to get the position of the first occurrence of blue color (P3), some kind of ray casting.

Is there a way to do it ?
Thank you.

Posted

Yes it is what I thought to just basically iterate on each point of the line but I wasn't sure it was the most efficient way (I'm pretty beginner with it then I'm not aware of all functionalities included 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...