Incandescent-Turtle / graham-scan-visualizer

a tool to visualize the Graham Scan algorithm for finding the convex hull. Complete with customization and different dot arrangments to try!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ’» Graham Scan Visualization Tool

This is a tool to visualize the Graham Scan algorithm for finding the convex hull of random points.
Click here to download the .jar to test it out!
gif of visualizer on loop


πŸ’„ Customization

screenshot of the customization menu

  • select which shape to generate points in
  • random shape generation
  • change the amount of dots
  • change the delay and step size to control the speed of the algorithm
  • toggle the visibility of both the dots and the lines showing the hull
  • a "loop" option to continue generating and finding the hull of new shapes

🟩 Shape Choice

screenshot of the dropdown menu to select shape

  • RANDOM: a random shape with 3-100 vertices
  • HEART: a uniform heart shape

heart shape

  • SQUARE: a uniform square
  • CIRCLE: a uniform circle
  • TRIANGLE: a triangle whose top point position varies

πŸ““ Notes

If you change the dot amount to 100_000 the shapes become mostly filled in.

About

a tool to visualize the Graham Scan algorithm for finding the convex hull. Complete with customization and different dot arrangments to try!


Languages

Language:Java 100.0%