Sutherland-Hodgman polygon clipping: Difference between revisions

m
→‎{{header|OCaml}}: update api doc for Graphics module
m (→‎{{header|Phix}}: syntax coloured, added online link)
m (→‎{{header|OCaml}}: update api doc for Graphics module)
Line 2,461:
(125, 300)
(100, 250)</pre>
We can display the result in a window using the <code>[httphttps://camlv2.inriaocaml.frorg/pubreleases/docs4.08/manual-ocamlhtmlman/libref/Graphics.html Graphics]</code> module:
<lang ocaml>let subject_polygon =
[ ( 50.0, 150.0); (200.0, 50.0); (350.0, 150.0);