100,000 Stars Pixel Shaders: An Interactive Introduction to Graphics Programming WebGL Water Loading... Made by Evan Wallace This demo requires a decent graphics card and up-to-date drivers. If you can't run the demo, you can still see it on YouTube. Interactions: Draw on the water to make ripples Drag the background to rotate the camera Press SPACEBAR to pause and unpause Drag the sphere to move it around Press the L key to set the light direction Press the G key to toggle gravity Features: Raytraced reflections and refractions Analytic ambient occlusion Heightfield water simulation * Soft shadows Caustics (see this for details) ** * requires the OES_texture_float extension** requires the OES_standard_derivatives extension Tile texture from zooboing on Flickr
Brown Sugar Hair Straightener Welcome to Pinterest Tested! Ever wonder if that miracle cleaner is really miraculous? Or what about that homemade facial cleanser or delicious-looking recipe? This is the place to find out! I am testing Pins that catch my eye to see if they really live up to the claims made on Pinterest. It's like the Mythbusters of Domesticity! The caption claims that if you mix 2 tablespoons of brown sugar with a cup of water and spray it into damp hair, it will air dry straight. So I gave it a whirl. I washed and towel dried my hair, then sprayed in the brown sugar water. I have to say, I am completely surprised by the results: My hair is NOT straight. At least I didn't have to re-wash my hair. But one word of warning...my bathroom vanity and floor were covered in sugar-water overspray and got SO sticky! Here's just a little comparison, in case you have forgotten how UNLIKE the original Pin my hair turned out... Obviously this test is a bomb. Update the next day: Ew!
A Primer on Bézier Curves Preface In order to draw things in 2D, we usually rely on lines, which typically get classified into two categories: straight lines, and curves. The first of these are as easy to draw as they are easy to make a computer draw. Give a computer the first and last point in the line, and BAM! straight line. Curves, however, are a much bigger problem. They're named after Pierre Bézier, who is principally responsible for getting them known to the world as a curve well-suited for design work (working for Renault and publishing his investigations in 1962), although he was not the first, or only one, to "invent" these type of curves. So, what if you need to program them yourself? —Pomax (or in the tweetworld, @TheRealPomax) Note: virtually all Bézier graphics are interactive. This page uses interactive examples, relying heavily on Bezier.js, as well as "real" maths (in LaTeX form) which is typeset using the most excellent MathJax library. This book is open source. Questions, comments: Perfect. and