Fun programming 81: How to read the color of a pixel

The autosurf simple efficient and powerful
The autosurf simple efficient and powerful
81 بار بازدید - 7 سال پیش - [Comments and more videos at
[Comments and more videos at funprogramming.org] With the get() function we can read the color of any pixel in our program window. We can specify which pixel we are interested in by using x and y coordinates as parameters. For example, color mycolor = get(100, 200); would grab the color of pixel 100, 200 and put that color into the mycolor variable. You can use this on many different ways. For instance you could grab the color of the pixel under the mouse pointer and use it for drawing something. Or if you
7 سال پیش در تاریخ 1397/01/30 منتشر شده است.
81 بـار بازدید شده
... بیشتر