Skip to content

implement team color auto inversion - #97

Open
DivineThreepwood wants to merge 2 commits into
devfrom
feature/96-increase-team-color-contrast-by-auto-inverrt-team-color-if-both-are-to-equal
Open

DivineThreepwood wants to merge 2 commits into
devfrom
feature/96-increase-team-color-contrast-by-auto-inverrt-team-color-if-both-are-to-equal

Conversation

@DivineThreepwood

Copy link
Copy Markdown
Member

📜 Description

Changes proposed in this pull request:

  • auto invert team color in case the colors are to close to each other
  • fix scanner by making sure scan is using team color for waves.

Test Procedure

  • start level with two teams that have nearly the same color and make sure the second teams color is inverted.

@Jodi-Pa

Jodi-Pa commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

There are currently three minor Problems with this fix:

  1. It doesn't account for alpha values. If you have two teams with a high alpha value the both look identical.
    (see also: Selecting transparent team colours #47)
  2. If a team has a nearly or full white color it is replaced as black, making it impossible to see the text of the methods.
  3. If a team has #808080 color (or similar), since the method uses the mathematical opposite, it remains #808080 because it ist the exact (mathematical) middle of all three colors.

Otherwise its working as expectet and does a really good job!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Increase Team color contrast by auto inverrt team color if both are to equal

2 participants