A Silly Usecase for WebSockets (strobe warning)
jakobmaier.at
jakobmaier.at
I have no idea if this is a hardware issue with my specific unit, or a more widespread thing.
Video here: https://twitter.com/David3141593/status/1456399950976278532
1. effects from your eyes (from looking at the strobing image)
2. PWM brightness controls causing your recordings to look like they strobe
The site in the OP wasn't working, so I tried a demo site instead: https://www.da.vidbuchanan.co.uk/strobegate.html. I looked at the strobing image, closed the tab, and sure enough my monitor (IPS, 60hz) was showing some signs of flickering. It disappeared after a few minutes. However, I performed a second test where I opened the site and didn't look at it with my eyes. The strobe after effect did not show up. Even though I didn't look at the monitor, I verified afterwards that a strobe was shown by a phone video recording. I also did a slo-mo video recording of my monitor without any visible strobe effect, and there was visible strobing in the recording, probably from the shitty PWM. You should follow a similar procedure to rule out whether it's something with your eyes or not.
while (true) { websocket.send(JSON.stringify({ action: 'plus' })); }
Really messed with my vision and crashed chrome. Fun experiment!setInterval(() => { websocket.send(JSON.stringify({ action: 'plus' })); }, 0)
setInterval( () => { if(state.textContent == 'on') {
websocket.send(JSON.stringify({ action: 'plus' })); } }, 50)edit: and here's a (very slow, 2s transition) gif of what it renders to: https://up.l3m.in/file/1645698812-slow-strobe.gif
Is reduced motion a good use case for this?
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pref...
> ? in the room, click anywhere to turn the light ?
> click counter: ?
Or, make in a flappy bird game? One up and one down button.
body.style.transition = `background-color 0.9s ease 0.1s`
If you stretch the definition to “any one person with some money” we've been in that world a lot longer.
This line of devices has become known as 'Gamma Flashers', lots of knockoffs today. From Gamma brain wave state.
There is some, small amount, of science to back this up.
So who is going to be the first person to put up a 40 Hz flashing website? With appropriate warnings about Photosensitive Epilepsy before showing the page.
https://pubmed.ncbi.nlm.nih.gov/30155285/
https://www.verywellhealth.com/photosensitive-epilepsy-sympt...
today users can not manage their bank account, enlist to classes, read newspapers online without the real fear of mining bitcoin for someone involuntarely, DDoS-ing goverment sites by hidden pixels, presenting unsolicited unrelated content to his audience on a presentation, and now, having sight damage...
No indication of how or why this has anything to do with websockets. :(
The lamp looks nice though.
lamp:51 Uncaught DOMException: An attempt was made to use an object that is not, or is no longer, usable
FF97 on UbuntuETA: I see it working now
EPILEPSY WARNING
This is pretty fun haha
This is a fantastic use of websockets
view-source:https://www.jakobmaier.at/projects/lamp/