Live data from Hacker News

Implementing a Foil Sticker Effect

4rknova.com

41–50 of 53 posts

Re: Implementing a Foil Sticker Effect

#42

This is neat, I have a simple CSS effect that I apply to foil cards on my Magic card marketplace site, but I have wondered what it would take to replicate all the different foil effects that a Magic card can come in to be both more varied and more true to life, in a performant way that fits into my CRUD svelte UX.

You can run shaders like this in the browser, so you could probably start by directly lifting this code (and practicing in shadertoy)

Re: Implementing a Foil Sticker Effect

#45

Neat! FYI tho, CC strongly recommends not using it for code https://creativecommons.org/faq/#can-i-apply-a-creative-comm...

Are there any software-oriented licenses in the same spirit as CC BY-NC? I'm aware that it likely wouldn't be a true Open Source license if you completely prohibit commercial use, but I've looked for a license like that in the past and didn't have any luck

The GPL is pretty close and still true Open Source. The GPL is technically closest to CC BY-SA, but the virality of the GPL (or especially the AGPL if you like/trust it, which I don't but that's a longer conversation) has been enforced enough that a lot of companies, especially smaller ones with fewer lawyers are wary of it/try to avoid it, but even a lot of big companies with many lawyers can be very conservative about how they use or don't use GPL software.

But yeah, both FSF and OSI see some commercial use as a freedom a Free/Open Source license should have so if you want a truly non-commercial license both will tell you it is not by definition a Free/Open Source license.

Re: Implementing a Foil Sticker Effect

#49
post #7

ios has a sticker-effect (“shiny”) like this which has the added bonus of responding directly to phone tilt. the first time i saw it I actually gasped.

Paper Mario Sticker Star is not a great or even good game, but I did love the effect where they used the accelerometer so if you moved the 3DS around, foil stickers would reflect back and forth. It's a fun effect.
Post reply on HN