Lurker News

Comments (94) 40 threads

Earlier comments
cardamomo3 replies#
This doesn't seem to work for Firefox on Android. Instead, I see three giant pixels, with a discrete border between them.
lqdc131 reply#
Hacker news comments section doesn't work on Firefox on Android either.
mintplant#
They don't work on desktop Firefox either, if you make the window small enough.

I always thought the staff had, for some reason, decided that mobile users didn't need to know which comment was part of which thread.

pygy_1 reply#
It's actually a very low resoluton image (3x7 by default), stretched using the bilinear filtering provided by the browser.

Chrome and Safari produce smooth images. Firefox for Mac produces a mosaic (source each pixel gets a ~10x10 grid, it looks pretty good IMO). Firfox for Android may not do any smoothing.
I don't think there's a way to control how the browser does the filtering.

pygy_#
The options are basically "smooth" and "don't smooth". Firefox for Mac in "smooth" mode doesn't smooth engough...
ycombobreaker#
The gradients look nice, but a nitpick about the site: Alt+LeftArrow and Alt+RightArrow are hijacked by the site to scroll! This is a shortcut for back/forward in browser history, and apparently I use it without thinking, because I just had a rather jarring experience trying to get back to the HN comments page.
pygy_1 reply#
The x/y increment resolution is a limit of the technique used. It uses overzoomed images, you scroll one source pixel at a time. Since it uses `background-size: cover;` for rendering, you cant scroll by fractions of pixels.
BinaryBullet#
Ah, that makes sense. I thought it was just that the dat.gui step was set to '1' not '0.01'. Didn't realize the step was set that way puposely due to a limitation of the technique being used.
kowdermeister1 reply#
Thanks, this will be a great addition. You can navigate with your arrow keys currently.

Readme will improve and I'll certainly link to your project, I like it a lot.

BinaryBullet1 reply#
I just noticed that :) Was working on adding a randomize button, but having trouble building. Are you using gulp or webpack or a combination?

I'll submit a PR after editing this (if you wanna accept it): https://github.com/tiborsaas/unique-gradient-generator/blob/...
Trying to add a randomize() function that edits topX, topY, and sampleArea. Might add a button to dat.gui or maybe just call it based on pressing the 'r' key.

kowdermeister#
Gulp for SASS and Webpack for ES6 transpilation. Dat.GUI button is a good way to go, I'll definitely accept a PR. Thanks in advance.
namuol2 replies#
Were you by any chance inspired by Medium's approach to pre-loaded thumbnails?
kowdermeister#
I've read about that before, so there's a chance it planted a seed in my brain, but the idea for the tool came from a codepen experiment I did a few months ago.
markdown#
It's a very old trick. Certainly not invented by Medium.

Load more comments