Convex hull and tangents

Click on the canvas to add point.
In blue the convex hull.
Superimposed in gray the polygon.
(All points are correct,
but sometimes drawing of polygons are wrong!)