src/js/utils.js
branchpopcorn-port
changeset 479 24308670f1bb
parent 473 1a09ab7e7163
child 497 f671cbaae9db
equal deleted inserted replaced
478:1422ba0fc333 479:24308670f1bb
    94     return count;
    94     return count;
    95 };
    95 };
    96 
    96 
    97 // conversion de couleur Decimal vers HexaDecimal || 000 si fff
    97 // conversion de couleur Decimal vers HexaDecimal || 000 si fff
    98 IriSP.DEC_HEXA_COLOR = function (dec) {
    98 IriSP.DEC_HEXA_COLOR = function (dec) {
    99 	 var hexa='0123456789ABCDEF',hex='';
    99 	 var hexa='0123456789ABCDEF';
       
   100    var hex='';
   100 	 var tmp;
   101 	 var tmp;
   101 	 while (dec>15){
   102 	 while (dec>15){
   102 		  tmp = dec-(Math.floor(dec/16))*16;
   103 		  tmp = dec-(Math.floor(dec/16))*16;
   103 		  hex = hexa.charAt(tmp)+hex;
   104 		  hex = hexa.charAt(tmp)+hex;
   104 		  dec = Math.floor(dec/16);
   105 		  dec = Math.floor(dec/16);