harywilke a day ago

Two fun flag facts. The red dot on the flag of Japan was off center by 1/100 towards the pole before 1999. The naval flag of France is not of equal proportions. the proportion are; blue 30, white 33, and red 37

jll29 a day ago

Yes turtle graphics are very educational, I taught it (via PyTurtle) to 11-year-olds, who picked it up easily ("draw a house, then translate into instructions for the little turtle").

BTW, there is no "Western European Union" any more, just one European Union, so the now simplified flag can leave out the white ugly letters in the middle.

lores a day ago

I'm in awe that in 2024 the first introduction to programming can be a turtle in Python, just like it was in 1982 when someone came to my primary school to show everyone a turtle in Logo.

userbinator a day ago

Filling on self-intersection is probably broken

That's always an edge-case (literally); having written various vector graphics converters over the years, the fundamentals are usually straightforward (although in this case converting between Cartesian absolute and polar relative coordinates can also introduce numerical precision issues), but depending on things like fill rule compatibility, these tricky cases tend to result in a lot of code dedicated to handling them correctly.

Even different OS' graphics stacks disagree: https://bugs.python.org/issue39392

Unfortunately there's a lack of US flag in the examples, but the Wales one makes up for it in complexity.

jony1266 a day ago

this is unbelievably cool... I remember turtle was the first thing I learned when learning python and it was super hard to make stuff that looked genuinely good. writing a tool to parse svgs into turtle code is a great strat