Sunday, March 27, 2016

the bidimensional complex numbers nature of world

Wondered why modern physics uses bidimensional complex numbers fourier transforms and waves probability bidimensional complex density functions.( why not one dimension, or 3,4 ?).
In fact it is due to the mathematical property that any function f(t) f(x) or f(x,y,z,t) can be decomposed as a sum of cos cosinus and sin sinus , which can be described as a sum of harmonics : cosinus with amplitude and phase (2 dimensions) for each frequency ,  amplitude*cos(twopi*frequency*t +phase)  which is fourier sum.
And so the nature of world is due to maths. 

Saturday, March 26, 2016

html5 pointillés dotted broken lines draw in canvas

heres an example of how to draw dooted broken lines (lignes pointillé) in html5 javascript canvas

  var contextx=0,contexty=0,contextpattern=0;
function context_moveTo(x,y){
  context.moveTo(x,y);
  contextx=x;contexty=y;
}
function context_lineTo(x,y){
  if(contextpattern==0){context.lineTo(x,y);}
  else if(contextpattern==2){
     var dr=20,dx=(x-contextx),dy=(y-contexty),dn=Math.sqrt(dx*dx+dy*dy)/dr;
     for(var i=0;i<dn;i++){context.moveTo(contextx+i*dx/dn,contexty+i*dy/dn);
           context.lineTo(contextx+i*dx/dn+dx*11/(dr*dn),contexty+i*dy/dn+dy*11/(dr*dn));}
     }
  else{
     var dr=10,dx=(x-contextx),dy=(y-contexty),dn=Math.sqrt(dx*dx+dy*dy)/dr;
     for(var i=0;i<dn;i++){context.moveTo(contextx+i*dx/dn,contexty+i*dy/dn);
           context.lineTo(contextx+i*dx/dn+dx*6/(dr*dn),contexty+i*dy/dn+dy*6/(dr*dn));}
     }
contextx=x;contexty=y;
}

Thursday, March 24, 2016

communicate with html iframe child window

how to easily interact communication between html parent window and child iframe window ?
use html5 localStorage if both parent and child window are in the same folder.
you can find a javascript example in my osm car sim json_osm_webcarsimheight_shadow and mystreetview

=>  http://chungswebsite.blogspot.fr/search/label/json_osm_chung     (free open source) 

Wednesday, March 9, 2016

woman3D_chung erotical nude art version of face3D_chung

woman 3D chung is an erotic nude art viewer version of face3D_chung openGL 3D avatar model creation program. ( beautifull not porn )

for 15+ years old,
personnal use only => https://womanchung.blogspot.pt/search/label/woman3D_chung         

(27/12/2016) sounds, automove added
(17/01/2018) morphobj3DS_woman version added