Intersect Function

2018-09-24 Thread Beat Cornaz via use-livecode
Is there a function to determine the intersection point (x,y) of two lines? The intersect function in LC only gives me a true or false, and I need the exact location (x,y) of the intersection. Thanks, Beat ___ use-livecode mailing list

Re: Intersect Function

2018-09-24 Thread Beat Cornaz via use-livecode
Thanks Craig, I was already afraid of that. Yes, I guess I could figure out the math. I will have the 2 functions of the lines and if I set them equal, I could solve the intersection point of the two. Your way is also valid, but as I need to determine many intersection points, the script might get

Get RGB color of a specific screen location

2018-12-31 Thread Beat Cornaz via use-livecode
How do I get the RGB color of a pixel of an image? I know the function the MouseColor, which gives me the RGB numbers under the cursor. What I need is to get the RGB of a specific screen location - I need to make an avarage of e.g. 5x5 pixels. So how do I get the RGB numbers of e.g. location

Get RGB color of a specific screen location

2019-01-07 Thread Beat Cornaz via use-livecode
I have asked this befor, but for the first time did not get any answer on my post. So I hope you don't mind that I try again :-) How do I get the RGB color of a pixel of an image? I know the function the MouseColor, which gives me the RGB numbers under the cursor. What I need is to get the RGB of

Re: Get RGB color of a specific screen location

2019-01-09 Thread Beat Cornaz via use-livecode
Thanks everyone for the many suggestions. I will try them out and see which one will work best. Appreciate the multitude of ideas. Cheers, Beat ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: Get RGB color of a specific screen location

2019-01-09 Thread Beat Cornaz via use-livecode
I have used the export snapshot and then the averaging. Works great. I had forgotten about the export function (have been away from coding for 3 years). I also had to implement Phil Davis' "set the screenMouseLoc to globalLoc(tLocWithinMyStack)". The average I got first (with only the mouseLoc)

Re: scrCopy BlendMode

2019-02-21 Thread Beat Cornaz via use-livecode
>>1. If you quote the modes then it works. hh wrote : > set the ink of img "DSC03103.jpeg" to "srcCopy" Thanks, that works. As for info about blendmodes, hh wrote : > https://en.wikipedia.org/wiki/Blend_modes I had seen this site, but was wondering about the other blend modes in LC. Including

scrCopy BlendMode

2019-02-20 Thread Beat Cornaz via use-livecode
A couple of questions about BlendModes in LC. 1. The 'normal' blendMode is scrCopy (the mode all objects get when they are created). I can change that blendmode and later put it back to scrCopy in the Inspector. But setting the ink to scrCopy by script does not work. I type in the messagebox :