Mene-Mene![]() Member Posts: 1398 From: Fort Wayne, IN, USA Registered: 10-23-2006 |
If you've looked at my vision thread you'll see I learned how to create a polygon using Sin and Cos. I was wonder how you could access each pixel within the polygon. I tried drawing a line between the points at the top and the point at the bottom. I was also wondering how to average the two colors. ------------------ |
|
Mene-Mene![]() Member Posts: 1398 From: Fort Wayne, IN, USA Registered: 10-23-2006 |
Hello? ------------------ |
|
Lazarus![]() Member Posts: 1668 From: USA Registered: 06-06-2006 |
Hello! ![]() I suppose you could create an array - where for every array1[x,y] - the x, y contained the coordinates of a pixel. Averaging two colors? Take their RGB values(red is (255,0,0), green(0,255,0), and blue(0,0,255), and average all three values together, I suppose. If that would work, it'd be like(for combining red and green). (128, 128, 0) [This message has been edited by Lazarus (edited December 22, 2006).] |
|
Mene-Mene![]() Member Posts: 1398 From: Fort Wayne, IN, USA Registered: 10-23-2006 |
How would it store it? Here is the code I wrote for it.
As for averaging wouldn't it be 255,255,0? ------------------ |
|
ArchAngel Member Posts: 3450 From: SV, CA, USA Registered: 01-29-2002 |
for what language? for C#, the getPath() method probably would be the way to go. but... I doubt your using C# ------------------ |
|
Mene-Mene![]() Member Posts: 1398 From: Fort Wayne, IN, USA Registered: 10-23-2006 |
BB ------------------ |