-
-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix map coloring Use segment ID from metadata instead of generated range. Rename some methods and variables. Colors are now assigned correctly, but we now apparently need five colors for some maps. * Incorporate fifth color into default color array. * Improve coloring algorithm Sort vertices by number of edges in descending order before coloring. * Empty map handling Return default value instead of Error when given an empty map. Update jsdoc to match the changed parameter. * Increase layer scan accuracy Change the resolution used to scan the given layer data. The previous value leads to invalid coloring with some maps. * Fix map iteration Iterate the full map instead of just half of it. * Decrease accuracy Set resolution back to 6 as it was not the problem after all.
- Loading branch information
Showing
2 changed files
with
58 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters