logoalt Hacker News

Experimenting with Random() in CSS

22 pointsby kilianlast Wednesday at 12:51 PM9 commentsview on HN

Comments

smallnixtoday at 1:16 PM

This might produce unpleasant clusters of the same color ("clustering illusion"), if the values are really randomly distributed.

MartijnBraamtoday at 12:09 PM

Bokeh doesn't have different blur for different circles, it's always projecting the exact shape of the aperture.

vintagedavetoday at 9:17 AM

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.

show 2 replies
g-today at 10:44 AM

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)