Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flag ratios #9

Open
2 tasks
hexaclue opened this issue May 3, 2023 · 0 comments
Open
2 tasks

Flag ratios #9

hexaclue opened this issue May 3, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@hexaclue
Copy link
Owner

hexaclue commented May 3, 2023

Some flags (e.g. the bisexual flag, or the paragender flag) do not have a standard ratio of colours. For example, the bisexual flag has a ratio of 2:1:2.

Fix:

  • A file with a map (just like /src/lib/constants/flagColours.ts), containing the ratios per flag.
    • Note that this should only contain flags which have ratios that are not all 1, for efficiency sake.
    • <String, number[]>
  • Use these ratios in drawToCanvas.
@hexaclue hexaclue added the enhancement New feature or request label May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant