Wednesday, June 3, 2015

Counting Plastic Beads, now with a GUI

After making a command line version, I decided to make a GUI one. Not that there was a need to, but I was trying out Eto.Forms GUI library and this was a great excuse to try different features.
The program is single classed (two actually, but the first class only job is to run Main and create the second class), 140 lines, no cool programming or any great pattern example, it gets the job done and that what counts here.
Launch the application, click **load** to select your image and click **count** to get a list of colors (Hex format) and how many bead are needed per color.
Note: the counting includes background beads, if the same color is used for both background and front colors, you may want to edit the image in your favorite editor and change background color.
Should work on both .NET and Mono on all main desktop OSes (Win, OSX, Linux).
Download here: Beadscount GUI (37) (all platforms in the same zip, you can run the .exe using .NET or MONO or use run .app on OSX)