LinkedInTwitterFacebook

Category Archives: HTML 5

Simple radial background.

This is the most simple example with HTML5. The result is one radial effect background blue. I add some text with style color white over this background. You can start with one default HTML5 and add the style of body tag. First create one file and named my_test.html. Then you can add this source code: […]

Share

Simple button shadow with css and webkit filter.

If you like it this simple shadow text with css with webkit filter then today I will show you how to make one simple shadow button. Is a basic html5 with css style and show with class button. <!DOCTYPE html> <html> <head> <style> .button{ color: #555; text-shadow: 0px 1px 0px #fff; display:block; padding: 5px; text-decoration:none;text-align: […]

Share

Shader x-ray effect with Three.js .

This source code running with Three.js javascript library. I used just three.min.js, OBJLoader.js and ColladaLoader.js to make the x-ray effect. I load one 3d object and using vertex and fragment shaders I rendered it. The object is a castle and is named: cube2.dae. This object is loaded with load function from OBJLoader.js. Then all steps […]

Share

WebGL – sound visualizer with Three.js .

First you need to create one html5 default webpage. Also you need to add the three.js library to your file. Add your MP3 file to your folder project. I named my mp3 file with your_sound_file.mp3. Because you used three.js javascript file you need to have this functions:init, animate, onError. To used the audio file you […]

Share

WebGL – simple shader example.

This is a simple webgl shader example. I used a simple HTML5 example with one canvas. The canvas has named glscreen. The next step is to put one java script with one var named buffer. The buffer var is used for one array. The Float32Array typed array represents an array of 32-bit floating point numbers. […]

Share