讓網頁變成 3D (紅/青)

Apr 27 2010

stereoscopyweb

gugod 的OSDC / RubyConf TW 2010 複習得知了 3D Bookmarklet 這玩意兒,趕緊拿自己的網站來試試:

drakeguan.org in 3D \(Red-Cyan\)

程式碼裏頭,有關 anaglyph 的部分如下:

e.style.color='rgba(255,0,0,0.5)'+imp; 
e.style.textShadow=d+'px 0 0 rgba(0,255,192,0.5)'+imp;

如果能採用 Half Color Anaglyph 或是 Optimized Anaglyph 公式的話,然後是對整個畫面處理(包含 img, css 裏的 background image/color, color)等處理,那就更完美了 :)

Reference: (for gugod)

comments powered by Disqus