from Hacker News

Diamond Subpixel Arrangement Simulator

by firloop on 1/11/24, 6:45 AM with 22 comments

  • by tomsmeding on 1/12/24, 8:09 PM

    That 4K render of an iPhone screen is so uselessly accurate it's great.
  • by DiabloD3 on 1/12/24, 9:20 PM

    Neat, but I kinda wish manufacturers would quit making cursed displays like this.

    Either follow the existing convention, or try your best to hide the subpixels entirely.

  • by zamadatix on 1/12/24, 11:39 PM

    This seems to treat one white dot as a green subpixel which bleeds 25% into the diagonally 4 adjacent red/blue subpixel. I've always seen pentile subpixels represented as groups of 2 element subpixels https://geometrian.com/programming/reference/subpixelzoo/squ... or diamond shaped gorups of 4 subpixels, 2 of which are green https://global.samsungdisplay.com/wp-content/uploads/2021/11.... In either case, the green subpixels tend to be smaller in response to their increased prevalence.
  • by Retr0id on 1/12/24, 11:27 PM

    The colour tinting of the mac icon and folder examples implies that their code isn't accounting for gamma curves properly, I might see if I can contribute a fix.
  • by mikaelaast on 1/13/24, 9:45 AM

    I love this. I tried doing sub-pixel simulation for a tool I created (screenstab.com if anyone’s interested – yeah I know, shameless plug, etc.). I ended up abandoning the sub-pixel aspect in my shader because of the distracting patterns caused by the Moire effect.