Skip to content

Commit

Permalink
Quick MrFlap fix for smartphones showing top and bottom borders
Browse files Browse the repository at this point in the history
  • Loading branch information
knothed committed Sep 20, 2021
1 parent da1b6a1 commit 87a6729
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -81,7 +81,7 @@ class ImageAnalyzer {
/// Find the coloring of the game.
private func findColoring(in image: Image) -> Coloring? {
// Step 1: use static pixel to find the main (theme) color
let topLeft = Pixel(10, image.bounds.height - 10)
let topLeft = Pixel(10, image.bounds.height - 100)
let theme = image.color(at: topLeft)

// Step 2: consider 21 pixels and determine their most frequent color to find the secondary color
Expand Down

0 comments on commit 87a6729

Please sign in to comment.