Skip to content

Commit

Permalink
make it more obvious when a cell is blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jan 10, 2020
1 parent d5b554c commit 75538c0
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/Main.elm
Expand Up @@ -233,14 +233,18 @@ view model =
average items =
List.sum items / toFloat (List.length items)
in
Image.viewColor [ Attributes.attribute "data-count" (String.fromInt (Set.size indexes)) ]
(Color.fromRGBA
{ red = average reds
, green = average greens
, blue = average blues
, alpha = Color.customOpacity (average opacities)
}
)
if Set.isEmpty indexes then
Html.td [] [ Html.text "X" ]

else
Image.viewColor [ Attributes.attribute "data-count" (String.fromInt (Set.size indexes)) ]
(Color.fromRGBA
{ red = average reds
, green = average greens
, blue = average blues
, alpha = Color.customOpacity (average opacities)
}
)
)
model.wave

Expand Down

0 comments on commit 75538c0

Please sign in to comment.