You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1- I propose to invert the colors since it is white above red :
I dont know if the ratio should also be 4/8 instead of 5/8 ? https://en.wikipedia.org/wiki/Poland
2- I have a question : for re-using the flags using smaller size because some flags are based on px (ex for great britain) could it rely on % of space instead of px ?
I propose to invert the colors since it is white above red :
I dont know if the ratio should also be 4/8 instead of 5/8 ?
https://en.wikipedia.org/wiki/Poland
Regarding the px/%, I try to use % as much as I can. Percentage are always relative to a side, so it is easy when using vertical or horizontal stripes. I becomes harder when I need to draw for example a square (where each side must have the exact same length). Then I cannot use percentage (because one would apply to height and the other to width), so it's easier to just use an absolute px value. Same goes for diagonal stripes. I could convert the px value to a % value but I'm afraid it will incurr round errors and make the code harder to read.
Anyway, this code was just a personal challenge, I would not recommend using it in production :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Great Work !
1- I propose to invert the colors since it is white above red :
I dont know if the ratio should also be 4/8 instead of 5/8 ?
https://en.wikipedia.org/wiki/Poland
It should also apply here : https://pixelastic.github.io/css-flags/
2- I have a question : for re-using the flags using smaller size because some flags are based on px (ex for great britain) could it rely on % of space instead of px ?