Live data from Hacker News

JQuery noise generator

github.com

31–40 of 40 posts

Re: JQuery noise generator

#31
post #27

Oh this is awesome. It's the last thing I need to completely eliminate images from my website. All the rest is cross-browser gradient and rounded corner code from http://css3please.com , and I'm debating whether to vectorize the picture of me via raphael.js or do an inline data-URL image in my CSS (it might be considered cheating).

Oh, I guess jQuery-noise adds data-URLs to the elements on the page, so I guess I don't have to feel bad about inlining my images :)

Re: JQuery noise generator

#32
post #4

I like the fact that this is jQuery - and that it could probably be used dynamically with other effects. .. but I'm starting to think noise + block-color backgrounds are starting to become a bit cliche.

That's not what cliché is. Noise is there to make the design easier on the eye. It simply works better than a solid fill in a lot of situations as it improves visual quality of the design. It is more natural if you will, similarly to how rounded corners look subjectively better than the straight ones. The noise was not extensively used before because it does not compress well, and spending 20KB on a background tile w…

Also, a bit of noise helps reduce banding in gradients.

Actually, in Firefox if you use a CSS gradient (ie -moz-linear-gradient) and look carefully.. you'll notice Firefox automatically adds noise/dithering to make it look smoother.

Re: JQuery noise generator

#34
post #28

I set up a jsperf to do some benchmarking: http://jsperf.com/noisy If you can help out by running the tests, it'll be great to compare browsers. This isn't exactly the perfect tool for the job, but it's close enough.

I moved this line out of the for loop which made it slightly faster:

var numPixels = options.intensity * Math.pow(options.size, 2);

http://jsperf.com/noisy/2

Re: JQuery noise generator

#35
post #9

Earlier quoted context omitted.

No, when something is overused, it actually does become a cliche. Perhaps noise can improve the visual quality of a design when it's used subtly. However, I'm increasingly seeing it (over) used in a conspicuous way, and I think it's become a trend. In some cases, I think there's an element of 'lets jump on the bandwagon'. Round corners definitely became a cliche. EDIT: re. noise - see dribbble for proof.

Do you mean dribbble uses noise subtly or that it's contributing to the overuse? Your point is a bit vague. I would guess the former, because I think the noise really adds to their presentation. It almost feels like I can rub the lettering on the paper.

I could be mistaken, but I think he means that if you browse through some of the submitted designs on dribbble, you can see a clear trend of noise being added into many designs these days. Not dribbble's design itself (although, it DOES use noise in its backgrounds)

Re: JQuery noise generator

#36
post #4

I like the fact that this is jQuery - and that it could probably be used dynamically with other effects. .. but I'm starting to think noise + block-color backgrounds are starting to become a bit cliche.

I think what's happening is that browser technology is finally catching up with typographic best practices. That's not to say there aren't design trends that turn into cliches, or that practices applied naively don't look clumsy; but this seems more to me like a small but important step on the road to a mature web design codex.

Re: JQuery noise generator

#39
post #3
post #2

Sorry, I dont get it. What am I looking at?

Sorry, it might be a bit confusing if you're not used to github. Here is an interactive demo: http://rappdaniel.com/noisy/

It wasn't github. It was the fact that, at first blush, Noisy seemed to fail the actually-does-something test.

It turned out not to be so, but it did take me a lot of control wiggling to figure out what was going on.

Re: JQuery noise generator

#40

Why is this useful?

Using noise is a way of adding another aspect of realism to objects. Normally you can prepare images ahead of time and use those in your css to create this effect, but for some procedurally generated things images can't always be used. That's where something like this would come into play. While the use case for this over precomputed images is quite small, it's nice nonetheless to have.

Aside from sites styles though, it's also a fully functional noise implementation - which could be ported to web based photo/graphics editors.

Post reply on HN