The code on GitHub
As announced in the part II of this series of articles, I pushed the code for the tool on GitHub. You can find the repository at the following address: https://github.com/kagix/ratptools. Feel free to use it. Feel free to improve it.
The java program scans all the PNG images in the current folder and generates two kinds of reports:
- a tabular one
- a CSV one (comma separated values )
The to reports are printed to the screen. You can redirect them into a file. I hope it will help those who want to use bus line colors as close as possible to the official ones. Again, this project is completely independent, so nothing is guaranteed 100%. So far, I believe the results are pretty close to the official colors.
My first computer ran Millennium, the second ran Vista. Don’t ask me why I left the Windows world for Unix. That’s why the forward slash and back slash prefix part has been tested only on Unix.
The code is not optimized for speed, and I believe it should be run once every week. I can’t wait to see the new bus lines that will be created in the near future. What colors will be used ? Future will tell.