PHP Classes

File: vendors/jqvmap/src/ColorScale/vectorToNum.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/jqvmap/src/ColorScale/vectorToNum.js   Download  
File: vendors/jqvmap/src/ColorScale/vectorToNum.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 208 bytes
 

Contents

Class file image Download
ColorScale.prototype.vectorToNum = function (vector) { var num = 0; for (var i = 0; i < vector.length; i++) { num += Math.round(vector[i]) * Math.pow(256, vector.length - i - 1); } return num; };