An application to draw a polygon,grid the inner region and color the grid partially as well as full

hi,
I want build an application to draw a simple polygon and grid the inner region of the polygon and color each grids as shown below


1-Draw a polygon


2-Grid the inner region of the polygon

3-If some grids cut the outline of the polygon like the grid named 3,ignore the entire grid

4-After griding we should be able to color the grid partially as well as partially

Please help…

1838031--117862--1.JPG
1838031--117863--2.JPG
1838031--117864--3.JPG
1838031--117865--4.JPG

Which part you are stuck at ?

Does it have to be (3D) mesh polygon or could use just sprite image of that polygon?

Check these classes for creating mesh/drawing:

hi mgear,
Im new to unity, now stuck at making grids inside the polygon.Its a 2d work.I am able to draw the polygon but really dont have an idea about how to make grids in the inner region and control each grids.