WebCgal is a web tool and abreviation of Web of Computational Geometry Algorithms. It is specialized to ease understanding computer geometry algorithms. Main features of the website are:

WebCgal actually is a tool for learning the idea behind the algorithm visually.

Above you can see a piece of WebCgal code. Writing code here is as easy as it is seen. An interactive demo of the code lies at the background of the web site. You can modify number of random points and click run to see the result. You can simply edit and run your code. By the way, Convex Hull function is written on page /algorithms/convexHull

Please visit the documentation page to get detailed information about WebCgal computational geometry language. WebCgal is easy to learn and you can start programming immediately. You will see that it makes lots of work extremely easy.


WebCgal works exactly on your browser. It does not require server respons. Therefore it is fast and you start immediately. Most prominent features are listed here:

Platform support

WebCgal is aimed at modern browsers with support for the Canvas object and EcmaScript 5.

Support for modern mobile browsers is experimental. Recent versions of the iOS browser and Chrome on Android should work pretty well.

Some of the mobile device OS (according to their version in Android and iOS) does not support properly when you interact with the drawings. In most of the problems, visualisations are really responsive and accurate.

As you can realize, coding on that devices are not that easy. It is highly recommended to use any desktop OS and Chrome browser.


WebCgal is an open source project and licensed under MIT. You can reach the code at GitHub.

WebCgal uses HTML5 Canvas and paper.js vector graphics. Paperjs is a javascript library and you can refer to it for reference. See the paperJs tutorial and reference for extra information.

Developer contact is here. You can ask anything about the web site.

Happy coding!