Today, I worked on my code and solved all the problems related to hatch feature. Here’s the commit. So, the hatch at this time is only working on polyline and has limited features like you can only choose the colour of the hatch through datafile. Gradient and pattern fill is still to be worked upon.
Here’s the format for adding hatch:
H,Description,Show_code,Layer_name x1,y1,bulge1 x2,y2,bulge2 . .
where ‘H’ tells the program that you want to use hatch.