Tag Archive for code

Create an interactive liquid metal ball with WebGL

So you want to create an interactive WebGL liquid metal ball? Glad you asked, programming wizard Paul Lewis has got just the thing!

Making websites is tons of fun, but sometimes you need to break free and do something a bit unusual. That’s what we’ll be doing today. We’ll be using the excellent Three.js engine to create an interactive metallic ball. As you click and drag the ball distorts and then slowly settles back to its original shape.

To do this we’ll be covering spring physics, 3D vectors and ray casting (and a few other things besides) all in an effort to create a compelling and fun interactive experience. Let’s start by looking at what we’re going to make.

The thing about experiments like these is that on the surface they don’t look to have direct commercial applications. You’d be forgiven for thinking the same about this one as well, and perhaps you’re right. But my philosophy is that as a developer you learn techniques and solutions to problems in these experiments that can help you in your day-to-day work. There have been many times where this has proved true for me, and I’m certain it’ll work out for you as well. In any case this is going to be tons of fun, so let’s get started on creating our scene.

LEARN THE CODE:

via Create an interactive liquid metal ball with WebGL | Tutorial | .net magazine.

 


Maximum PC | Cool Site of the Week: Codeacademy

 

 

Unpretentious and easy to approach, Codeacademy makes coding so enjoyable, it’s hard to believe you’re actually learning something. The website starts users off small, offering tutorials on how to use some very basic JavaScript commands. Each lesson is incrementally progressive and conversational in tone, making it easy to advance your skills without breaking a sweat. Each time you reach a new plateau of coding knowledge, users are awarded with a virtual trophy, making the time spent learning how to do something useful feel a like playing a game.

via Maximum PC | Cool Site of the Week: Codeacademy.

Debunking PHP’s bad reputation | Opinion

 

 

PHP has the reputation of being the poor cousin of scripting languages, due to outdated language features and plenty of poor quality code written using it. I use PHP as my main programming language and it’s seen waves of change over the last five years; it’s so much more than a language for script kiddies and hobbyist hackers. There are some ‘truths’ about the language that aren’t true these days, so I’d like to bring you a little update.

via Debunking PHP’s bad reputation | Opinion | .net magazine.

Master CSS gradients

The word gradient has many different meanings, but in CSS, a gradient is strictly defined as a gradual transition between a range of (at least two) colours. CSS gradients are a fairly recent development but have already been through a number of changes. They were originally proposed by the WebKit team in April 2008, modified from the syntax proposed for the canvas element in HTML 5.

The W3C’s CSS Working Group later proposed a modified syntax, and this syntax is in the latest revisions of the Image Values Module. The first browser to implement this was Firefox 3.6, and the WebKit team weren’t far behind, so Safari 5.1 and above and recent versions of Chrome also use this syntax (The Book of CSS3 explains the old WebKit implementation fully).

via Master CSS gradients | Tutorial | .net magazine.

jQuery overtakes Flash

 

 

According to jQuery support, training and consulting company appendTo, the popular open source library has now ‘overtaken’ Flash, in terms of how many websites have deployed each technology, at least when it comes to the world’s ‘top’ websites.

via jQuery overtakes Flash | News | .net magazine.

   Beat diabetes   Diabetes diet