NewsLab
Jun 28 17:23 UTC

Experimenting with Random() in CSS (polypane.app)

23 points|by kilian||9 comments|Read full story on polypane.app

Comments (9)

9 shown
  1. 1. vintagedave||context
    A real shame that they didn't include screenshots of what the results look like. Not only do they note browsers that don't support it yet, they even note that the samples might not survive changes in the future.

    So I scrolled, saw a lot of code, nothing showing the result.

  2. 2. LoganDark||context
    There are a ton of interactive demos for me on Safari 27, and at the top of the article there's also a video. What isn't showing up for you?
  3. 3. jdw64||context
    I use Google Chrome, and it doesn't show up for me either
  4. 4. Sesse__||context
    It's behind a flag, if you want to play with it. (The easiest way is usually just to test in Canary.)
  5. 5. Stitch4223||context
    There is movie at the top that shows three renders of the same thing next to each other so the randomness can easily be spotted.
  6. 6. mrbluecoat||context
    I especially liked the aurora demo. Nice example!
  7. 7. g-||context
    Didn't there exist convoluted ways to get random numbers in CSS before this? (I think some would even manipulate the DOM and re-read the changed values since those operations have randomness apparently)
  8. 8. MartijnBraam||context
    Bokeh doesn't have different blur for different circles, it's always projecting the exact shape of the aperture.
  9. 9. smallnix||context
    This might produce unpleasant clusters of the same color ("clustering illusion"), if the values are really randomly distributed.