Posty

Wyświetlanie postów z kwiecień, 2018

TIL: linie w SVG

1. w SVG istnieją tagi <polygon> oraz <polyline>. Ja zawsze używałem <path> I nie robiłem wcale źle, ponieważ: "In these examples, it would probably be simpler to use the or elements. However, paths are used so often in drawing SVG that developers may be more comfortable using them instead. There is no real performance penalty or bonus for using one or the other." 2. w SVG w path istnieje taki znacznik jak `H` do robienia horyzontalnych linii (to samo można osiągnąć przez L z parametrem x = 0) i parę innych skrótów https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths