Skip to content

Commit

Permalink
Consistently use magenta for un-explored path data
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Jun 10, 2021
1 parent 76106c3 commit 276322a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const getPixels = (fileName) => {
};

// https://tibiamaps.io/guides/minimap-file-format#pathfinding-data
const UNEXPLORED = { r: 0xFA, g: 0xFA, b: 0xFA };
const UNEXPLORED = { r: 0xFF, g: 0x00, b: 0xFF };
const NON_WALKABLE = { r: 0xFF, g: 0xFF, b: 0x00 };

const countWalkablePixels = (pixels) => {
Expand Down
Binary file modified tests/fixtures/Minimap_WaypointCost_32256_32000_7.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/fixtures/Minimap_WaypointCost_32256_32000_8.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 276322a

Please sign in to comment.