Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You're correct. However, I think the described technique with generated content and transforms of multiple box shadows can be used to achieve realistic simulations of lighting, like the kinds in your blog post.

The author's idea of realistic lighting effects indeed doesn't take into account the perspective of the curl on the note, and therefore looks a bit unnatural.

P.s.: Great post.



Agreed. It’s one of the simplest guides to adding subtle texture to widgets out there, with the added bonus of being concise.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: