Traewelling / line-colors

This repository collects German public transport line colors.
https://traewelling.github.io/line-colors/
Creative Commons Zero v1.0 Universal
29 stars 41 forks source link

add support for not so complex shapes (hexagon/trapezoid) #154

Open ghost opened 4 months ago

ghost commented 4 months ago

just as an idea for hexagons and trapezoids: would it be possible to support them in the near future?

we really don't need to re-invent the wheel. i think two triangles and a rectangle might be the way to go with the existing codebase, right?

image

those triangles at each end would just need to be the same colour as the rectangle.

                .triangle-left {
                    border-width: 50px 25px 50px 0;
                    border-color: transparent #ff0000 transparent transparent;
                }

code for the already existing rectangle

                .triangle-right {
                    border-width: 50px 0 50px 25px;
                    border-color: transparent transparent transparent #ff0000;
                }

same thing with trapezoids, which are just hexagons but in not-so-cool

image

verbuchselt commented 4 months ago

I'm all for it.. just out of curiousity: Where do the trapezoids occur "naturally"? 😅

ghost commented 4 months ago

I'm all for it.. just out of curiousity: Where do the trapezoids occur "naturally"? 😅

afaik: only hamburg's ferries use it.

image

sauce