Tag Archives: javascript

JavaScript – the glMatrix.

The glMatrix javascript is designed to perform vector and matrix operations very fast.
The official website can be found here.
What’s new in 2.0?
The glMatrix 2.0 is the result of a lot of excellent feedback from the community, and features:

  • Revamped and consistent API (not backward compatible with 1.x)
  • New functions for each type, based on request.
  • New array operations: vec(2/3/4).forEach
  • Even more optimizations!
  • A cleaner code base, broken up by type.
  • A more complete unit testing suite.

Let’s test one example with gl matrix and shaders:

Posted in All, HTML 5, javascript, Programming. Tagged with , , , , .

Using free Greensock and TweenMax .

You can use both Greensock MorphSVGPlugin And TweenMax for free on Codepen.
You need to add this into javascript like resources:

https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/TweenMax.min.js

https://s3-us-west-2.amazonaws.com/s.cdpn.io/939680/MorphSVGPlugin.min.js

Posted in All, HTML 5, javascript, Programming. Tagged with , , , , , , .

Create a starfield with Three.js .

You need to create two files into your folder and use this filenames : index.html and starfield.js .
First file index.html come this source code:

The next file is a java script and come with this source code:

Posted in All, HTML 5, javascript, Programming. Tagged with , , , , , .

JavaScript – Processing.js 2D library – part 003.

In this tutorial I will show you how to use images with processing.js.
You can use image from your computer or from url.
Let’s see one simple code example:

You can see same example on openprocessing web tool.
The openprocessing web tool allow you to use Processing.js and P5.js .

Posted in All, HTML 5, javascript, Programming. Tagged with , , , , , , .

JavaScript – FlipClock .

Another tutorial about javascript and HTML5 .
The FlipClock is a javascript source code and tool to let you to make a flip clock .
As you know :
A flip clock is an electromechanical, digital time keeping device with the time indicated by numbers that are sequentially revealed by a split-flap display.
This javascript come with many options and feature to set your flip clock:

  • Hourly Counter
  • Minute Counter
  • Daily Counter
  • 12hr Clock
  • 24hr Clock
  • General Counter

You need to download it and then you can try the examples from examples folder.
The next example come with the base of the css file and the flipclock.js .
I just set the clockFace setting to TwentyFourHourClock.
You can used this javascript to show: counter, countdown or interval.

Posted in All, HTML 5, javascript, Programming. Tagged with , , , , , , .