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. Adventure time, SVG edition

Adventure time, SVG edition

Scheduled Pinned Locked Moved The Lounge
designgraphicscomiotxml
2 Posts 2 Posters 0 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

    I gave up. I was implementing Wu algorithms for anti-aliased draws in my graphics library, but I kept running into problems with it due to also supporting alpha blending. Basically the problem is that you cannot draw a pixel in the same place twice, ever or if alpha blended it will blend with itself, halving the transparency. Most of the algorithms don't account for that, and the ones that I've found that do work in narrow cases, like circles only, or filled ellipses but not regular ellipses. I'm over it. I have an SVG rasterizer in C I'm already using to support SVG in my library. *cracks knuckles* I'm adding a bunch of builder methods like add_ellipse<>() so you can basically use svg_docs for advanced drawing operations without needing to go through XML to get there. It's not easy, and I'm not sure how practical it will be in the end, but I hope it works, because that unsticks me. I've been waiting to write a full featured UI control suite for my UI/UX library until I had anti-aliased draws in my graphics library because I didn't want to have to rewrite all the drawing code later. So if this works it will unblock me in a major way.

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

    M 1 Reply Last reply
    0
    • H honey the codewitch

      I gave up. I was implementing Wu algorithms for anti-aliased draws in my graphics library, but I kept running into problems with it due to also supporting alpha blending. Basically the problem is that you cannot draw a pixel in the same place twice, ever or if alpha blended it will blend with itself, halving the transparency. Most of the algorithms don't account for that, and the ones that I've found that do work in narrow cases, like circles only, or filled ellipses but not regular ellipses. I'm over it. I have an SVG rasterizer in C I'm already using to support SVG in my library. *cracks knuckles* I'm adding a bunch of builder methods like add_ellipse<>() so you can basically use svg_docs for advanced drawing operations without needing to go through XML to get there. It's not easy, and I'm not sure how practical it will be in the end, but I hope it works, because that unsticks me. I've been waiting to write a full featured UI control suite for my UI/UX library until I had anti-aliased draws in my graphics library because I didn't want to have to rewrite all the drawing code later. So if this works it will unblock me in a major way.

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

      M Offline
      M Offline
      megaadam
      wrote on last edited by
      #2

      SVG FTW ! :java:

      "If we don't change direction, we'll end up where we're going"

      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