Login
You're viewing the ruby.social public feed.
  • JobvanderZwan@vis.social
    Apr 4, 2026, 9:47 PM

    Can you guess what's special about these images that I just generated? I mean aside from the optical illusions in the first one, which actually were just a coincidence.

    And when I say "you" I really mean people like @demofox who might have an eye for these things ;)

    It actually has something more mathematically interesting going on - spoiler in the alt text of the images.

    An image with 256 shades of gray. It looks like it is made up of columns of shifting, overlapping gradients.

It actually is a 256 by 256 pixel texture (upscaled to 1024 by 1024 for clarity) that contains exactly 256 non-overlapping progressive multijittered sequences of 256 values each, covering the entire texture.

That has a couple of interesting consequences. For example: you can divide the image into 16 by 16 tiles, each of which contains every 256 grayscale value exactly once in its 16 by 16 pixels. Each pixel row also contains each grayscale value exactly once, as does each pixel column.

I'm actually not sure if this has been done before or if I'm the first. Either way I figured out a closed-form algorithm that lets me generate these trivially, at any size, and for every possible configuration.
    Another grayscale image that looks more like a classic Bayer order dithering pattern, except there appears to be some inconsistencies across the iamge. It actually is the same set of 256 non-overlapping progressive multi-jittered sequences as the previous image, but with different colors assigned to each sequence. Specifically, the grascale values are assigned in such a way that the 16x16 tile in the top-left corner forms a Bayer pattern.

All the previously mentioned special properties still apply.
    A noisy 256 by 256 texture, but again under the hood made up out of 256 non-overlapping progressive multi-jittered sequences, each assigned a random unique grayscale value between 0 and 256.

And despite looking like noise, each column, each row, and each 16x16 pixel tile (starting at a multiple of 16 pixels) still contains each of the 256 grayscale values exactly once.
    💬 0🔄 1⭐ 1