General question about Unity

I am learning Unity, I have two question

want help:

  1. I have a polygon and want to draw inside

the polygon, how can I know the area I draw is above 50%?

  1. I draw different color in different

polygon, how can I read the RGB value of the color?

Thanks a lot.

GetPixels is probably your friend here.