Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. I decided to support TinyVG after all

I decided to support TinyVG after all

Scheduled Pinned Locked Moved The Lounge
graphicsdesignannouncementcomiot
4 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    honey the codewitch
    wrote on last edited by
    #1

    Update 3: Update 2 was wrong, and boy am I glad to be wrong. Turns out I was misinterpreting a niggling little detail of the spec. Once i fixed that, my code rendered my test documents. Update 2: I can't support TinyVG without tearing apart my rasterizer. It uses even-odd rule even when elements overlap. My rasterizer doesn't. Mine is more compatible with the way SVG and Truetype do things. TinyVGs method is one off, but I'm not inclined to try to hack it apart to support both. :doh: :( Update: I've got TVG partially working. It's rendering some documents but not others. I think it's funny that my much more complicated SVG code works better than the one that renders the simple TVG format. _________________________________________________________________________ TVG is a compact, simplified vector graphics file format. After speaking with the author of TinyVG[^] it's not as vaporwarey as I thought. You can turn SVGs into TVGs by first running the SVG through a 3rd party tool called SVGO. I've got an initial render (imperfect) in TVG now, so my code is working somewhat. Currently the reference implementation provided by the author is in Zig, which is unfortunate, since it's a reference implementation and Zig is still a boutique language. I intend to provide the author a couple of things. 1. A reference implementation, probably in C 2. A better SVG->TVG conversion tool that doesn't require running things though SVGO first. But first I need to perfect my TVG support and wrap up my htcw_gfx 2.0 release. I'm feeling pretty good about this.

    Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

    P 1 Reply Last reply
    0
    • H honey the codewitch

      Update 3: Update 2 was wrong, and boy am I glad to be wrong. Turns out I was misinterpreting a niggling little detail of the spec. Once i fixed that, my code rendered my test documents. Update 2: I can't support TinyVG without tearing apart my rasterizer. It uses even-odd rule even when elements overlap. My rasterizer doesn't. Mine is more compatible with the way SVG and Truetype do things. TinyVGs method is one off, but I'm not inclined to try to hack it apart to support both. :doh: :( Update: I've got TVG partially working. It's rendering some documents but not others. I think it's funny that my much more complicated SVG code works better than the one that renders the simple TVG format. _________________________________________________________________________ TVG is a compact, simplified vector graphics file format. After speaking with the author of TinyVG[^] it's not as vaporwarey as I thought. You can turn SVGs into TVGs by first running the SVG through a 3rd party tool called SVGO. I've got an initial render (imperfect) in TVG now, so my code is working somewhat. Currently the reference implementation provided by the author is in Zig, which is unfortunate, since it's a reference implementation and Zig is still a boutique language. I intend to provide the author a couple of things. 1. A reference implementation, probably in C 2. A better SVG->TVG conversion tool that doesn't require running things though SVGO first. But first I need to perfect my TVG support and wrap up my htcw_gfx 2.0 release. I'm feeling pretty good about this.

      Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      honey the codewitch wrote:

      But first I need to

      "... crush your my enemies, see them driven before you me, and hear the lamentations of their women"

      pkfoxP 1 Reply Last reply
      0
      • P PIEBALDconsult

        honey the codewitch wrote:

        But first I need to

        "... crush your my enemies, see them driven before you me, and hear the lamentations of their women"

        pkfoxP Offline
        pkfoxP Offline
        pkfox
        wrote on last edited by
        #3

        That'll be old Genghis

        In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP

        K 1 Reply Last reply
        0
        • pkfoxP pkfox

          That'll be old Genghis

          In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP

          K Offline
          K Offline
          k5054
          wrote on last edited by
          #4

          [Conan The Barbarian: What is best in life...? - YouTube](https://www.youtube.com/watch?v=\_XUu3\_pLPUE)

          "A little song, a little dance, a little seltzer down your pants" Chuckles the clown

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups