GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    John Nesky (johnnesky@mastodon.gamedev.place)'s status on Wednesday, 03-Jan-2024 00:26:03 JST John Nesky John Nesky

    Sometimes I want to make a browser-based art tool, but then I remember that browsers don't have any built-in gamma correct alpha blending. I could implement my own, but I'd have to implement everything else too, like masking and vector graphics paths. Which is exactly the sort of reinventing-the-wheel that I enjoy doing, but I don't have enough free time to justify adding all that to my side projects so instead I just get sad.

    In conversation Wednesday, 03-Jan-2024 00:26:03 JST from mastodon.gamedev.place permalink
    • Embed this notice
      Ethan Black (golemwire@social.librem.one)'s status on Wednesday, 03-Jan-2024 00:25:54 JST Ethan Black Ethan Black
      in reply to

      @johnnesky Maybe if it's a paletted or low-bits-per-channel (pixel art?) editor where the minimum distance between two colors is greater than or equal to the distance between the darkest colors in linear 8bpc RGB. If that makes any sense; I'm not a colors expert.

      In conversation Wednesday, 03-Jan-2024 00:25:54 JST permalink
    • Embed this notice
      John Nesky (johnnesky@mastodon.gamedev.place)'s status on Wednesday, 03-Jan-2024 00:26:01 JST John Nesky John Nesky
      in reply to

      Wait what if I just convert all my colors to linear RGB values anyway, use those in standard browser graphics APIs and pretend that I'm doing all blending in linear RGB space, then perform a single transformation on the final image to convert it to real sRGB for display? I'd probably lose a lot of color depth in the darker colors unfortunately, maybe too much to be worthwhile. :/

      In conversation Wednesday, 03-Jan-2024 00:26:01 JST permalink
    • Embed this notice
      Ethan Black (golemwire@social.librem.one)'s status on Wednesday, 03-Jan-2024 00:39:00 JST Ethan Black Ethan Black
      in reply to

      @johnnesky Weird idea, but what if you store in sRGB, convert to 10bpc linear RGB, and call browser APIs using 8bpc linear RGB with four pixels to an on-screen pixel? Basically the classic downscaling-to-antialias thing but used just to limit the banding effect of converting 8bpc linear RGB to 8bpc sRGB.

      In conversation Wednesday, 03-Jan-2024 00:39:00 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.