Login
You're viewing the mastodonapp.uk public feed.

Replies

  • Nov 4, 2026, 5:36 PM

    @kboyd @pho4cexa I am curious to see the svg i have to say. I have an idea of the levels of trickery that would be needed I think.

    💬 1🔄 0⭐ 0
  • Nov 4, 2026, 6:04 PM

    @emily_s @kboyd coming shortly. not much trickery; just 12 short paths and a circle. arranging the viewport to let me use mostly single-digit integer coordinates does most of the work compared to what a vector graphics program would emit

    actually this morning i suspected i could cut the size down even more by putting a stripe and a rotated square into defs and cloning them with use href, but i just tried it and it ends up slightly bigger 🤷

    💬 2🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 4, 2026, 9:48 PM

    @pho4cexa @kboyd I managed 853 bytes with paths for each band and a stroke width set on the root element.

    Though that ends up with jagged bits poking out the edge of the view box on the triangle bands so its not particularly good.

    💬 1🔄 0⭐ 0
  • 💬 1🔄 1⭐ 2
  • Nov 5, 2026, 7:09 AM

    @pho4cexa @kboyd oooh nice! Thank you. Really nice write up. Shall play and see how much difference some of your tricks make to my attempt.

    (If I get a seat on the train to work this morning)

    💬 1🔄 0⭐ 0
  • 💬 2🔄 1⭐ 0
  • Nov 5, 2026, 7:50 AM

    @emily_s @kboyd ohhh wow instead of polygons you just used thick lines, that's brilliant!! now i understand why you were asking about the yellow background

    i have a hypothesis that i have yet to explore: i know run-length encoding is part of most compression software like gzip, so i wonder if we can get away with generous amounts of whitespace for indenting without increasing the gzip-compressed file size (much? at all?)

    💬 1🔄 0⭐ 0
  • Nov 5, 2026, 7:55 AM

    @pho4cexa @kboyd ooh good point. I remember xml compressing well because of the number of repeating keys, spaces should be similar. I haven't tried compressing mine yet. One for this evening as Im nearly at my stop

    BTW thank you for this it is a fun little challenge.

    💬 1🔄 0⭐ 0
  • Nov 5, 2026, 8:42 AM

    @pho4cexa @kboyd ooh that would make a difference to the best way to encoded paths too. The repeating relative line suffix on the chevron paths in mine should compress better than if I'd used global coordinates.

    💬 0🔄 0⭐ 0
  • Nov 5, 2026, 3:42 PM

    @emily_s It would be less readable and it'll alter the colours a little but you could change all colours with more than 4 characters to three character hex codes? e.g. #90d for darkviolet

    💬 0🔄 0⭐ 0