Beruflich Dokumente
Kultur Dokumente
L’ANOMALOSCOPE de Nagel
Vision colorée
(discrimination des couleurs)
Par ailleurs,
1. Le myope voit mieux dans le rouge,
2. L'hypermétrope dans le vert, et
3. L'astigmate dans le jaune.
Remarque :
Les zones de saisie sur cette barre (ainsi que celles à gauche des
boutons « DECrémenter ») ne font encore pour le moment rien
de plus que cette barre.
B). COMMENT ?
hexadécimpale).
Remarque :
Illustration pratique :
A. SAISIE :
1) Composez la couleur de référence suivante :
RGB ( 132 , 37 , 230 ).
a. On saisit donc :
1. 132 à droite du sigle « R »,
2. 37 à droite du sigle « V »,
3. 230 à droite du sigle « B ».
B. IL COMMENCE :
1) Il préfère par exemple commencer par taper quelques
valeurs de départ dans les cases à gauche de
« ROUGE », « VERT » et « BLEU », par exemple 150,
150, 150 pour chacune des trois couleurs.
Figure 1. On voit qu’il y a trop peu de bleu et de rouge. Pour le vert, ce n’est pas encore évident.
<script type="text/javascript">
var delai=new Date(),nCookie="diasnagelh",aCookie=nCookie+"=yes";
delai.setTime(delai.getTime()+(3600000));
if(document.cookie.indexOf(aCookie)!=-1);
else document.cookie=aCookie+";expires="+delai.toGMTString();
function Ucookie(){
document.cookie=nCookie+'=no'
}
<style>
td {width:100%;height:16.66%;font-family:arial;font-
weight:600;color:black;font-size:18pt;valign:"top"}
input{border:solid thin;text-align:center;background:#cccccc}
.icdc {cursor: crosshair; border: thin dotted}
.colv {cursor: e-resize; border: thin ridge}
.bcol {cursor: hand; border: thin solid}
.cint {cursor: move}
.spcol {background:spcol;border:none}
.rdcol {background:rdcol}
.bicol {width:48pt}
</style>
</head>
</td></tr>
</table>
</body>
<script type="text/javascript">
let r,v,b;
crv = document.getElementById("crv");
cvv = document.getElementById("cvv");
cbv = document.getElementById("cbv");
crvh = document.getElementById("crvh");
cvvh = document.getElementById("cvvh");
cbvh = document.getElementById("cbvh");
dbb = document.getElementById("dbb");
dbv = document.getElementById("dbv");
drb = document.getElementById("drb");
drv = document.getElementById("drv");
dvb = document.getElementById("dvb");
dvv = document.getElementById("dvv");
ibb = document.getElementById("ibb");
ibv = document.getElementById("ibv");
irb = document.getElementById("irb");
irv = document.getElementById("irv");
ivb = document.getElementById("ivb");
ivv = document.getElementById("ivv");
verif = document.getElementById("verif");
ksp = document.getElementById("ksp");
vsp = document.getElementById("vsp");
osp = document.getElementById("osp");
irb = document.getElementById("irb");
// r = document.getElementById("r");
document.getElementById('c3').style.background=spcol;
function go() {
cptr=0; existe=false;
var tmp;
var col = new Array(-1, -1, -1);
var couls = new Array("Red","Green","Blue");
cl=couls.length;
for(k=0; k<cl; k++){
existe=false;
tmp=Math.floor(Math.random()*cl);
for(l=0; l<cptr; l++) {
if(tmp==col[l]) {existe=true;continue}
}
if(!existe) {col[cptr++]=tmp;}
else k--
}
document.getElementById('c1').style.background=couls[col[0]];
document.getElementById('c2').style.background=couls[col[1]];
}
function act() {}
function lab(p){
var r,v,b
if(p=="j" || p=="m" || p=="c") {
crvh.style.visibility="visible";
cvvh.style.visibility="visible";
cbvh.style.visibility="visible";
if(p=="j") {
r="#FF0000";document.getElementById('rlab').style.color=r;
v="#00FF00";document.getElementById('vlab').style.color=v;
b="#000000";document.getElementById('blab').style.color=b;
document.getElementById('c2').style.background="#FFFF00";
}
if(p=="m") {
r="#FF0000";document.getElementById('rlab').style.color=r;
v="#000000";document.getElementById('vlab').style.color=v;
b="#0000FF";document.getElementById('blab').style.color=b;
document.getElementById('c2').style.background="#FF00FF";
if(p=="c") {
r="#000000";document.getElementById('rlab').style.color=r;
v="#00FF00";document.getElementById('vlab').style.color=v;
b="#0000FF";document.getElementById('blab').style.color=b;
document.getElementById('c2').style.background="#00FFFF";
}
}
if(p=="k") {
r="#000000";document.getElementById('rlab').style.color=r;
v="#008800";document.getElementById('vlab').style.color=v;
b="#000088";document.getElementById('blab').style.color=b;
document.getElementById('c2').style.background="#008888";
}
if(p=="v") {
r="#880000";document.getElementById('rlab').style.color=r;
v="#000000";document.getElementById('vlab').style.color=v;
b="#000088";document.getElementById('blab').style.color=b;
document.getElementById('c2').style.background="#880088";
}
if(p=="o") {
r="#880000";document.getElementById('rlab').style.color=r;
v="#008800";document.getElementById('vlab').style.color=v;
b="#000000";document.getElementById('blab').style.color=b;
document.getElementById('c2').style.background="#888800";
}
}
if(p=="x1" || p=="x2") {
r1=Math.floor(Math.random()*16).toString(16);
r2=Math.floor(Math.random()*16).toString(16);
v1=Math.floor(Math.random()*16).toString(16);
v2=Math.floor(Math.random()*16).toString(16);
b1=Math.floor(Math.random()*16).toString(16);
b2=Math.floor(Math.random()*16).toString(16);
r=r1+r2;v=v1+v2;b=b1+b2;
rc="#"+r+"0000";document.getElementById('rlab').style.color=rc;
vc="#00"+v+"00";document.getElementById('vlab').style.color=vc;
bc="#0000"+b;document.getElementById('blab').style.color=bc;
bgc="#"+r+v+b
document.getElementById('c2').style.background=bgc;
}
crvh.value=r.toUpperCase();
cvvh.value=v.toUpperCase();
cbvh.value=b.toUpperCase();
if(p=="x1"){
crvh.style.visibility="visible";
cvvh.style.visibility="visible";
cbvh.style.visibility="visible";
}
else if(p=="x2"){
crvh.style.visibility="hidden";
cvvh.style.visibility="hidden";
cbvh.style.visibility="hidden";
}
}
function mchange(){
if(c=crv.value){
m=255;
if(c<0) r=c=crv.value="00".toString();
else if(c>m) r=c=crv.value=m.toString(16);
else if(c<1) r="00".toString();
else if(c<16) r="0"+eval(c).toString(16);
else r=eval(c).toString(16)
}
else r="00".toString();
if(c=cvv.value){
m=255
if(c<0) v=c=cvv.value="00".toString();
else if(c>m) v=c=cvv.value=m.toString(16);
else if(c<1) v="00".toString();
else if(c<16) v="0"+eval(c).toString(16);
else v=eval(c).toString(16)
}
else v="00".toString();
if(c=cbv.value){
m=255
if(c<0) b=c=cbv.value="00".toString();
else if(c>m) b=c=cbv.value=m.toString(16);
else if(c<1) b="00".toString();
else if(c<16) b="0"+eval(c).toString(16);
else b=eval(c).toString(16)
}
else b="00".toString();
bgc="#"+r+v+b;
document.getElementById('c2').style.background=bgc;
r=("#"+r+"0000").toString();v=("#"+"00"+v+"00").toString();b=("#"+"0000"+b).t
oString()
document.getElementById('rlab').style.color=r;
document.getElementById('vlab').style.color=v;
document.getElementById('blab').style.color=b;
crvh.value=r.toUpperCase();
cvvh.value=v.toUpperCase();
cbvh.value=b.toUpperCase()
}
var cr=cv=cb=128;
function incdec(p){
if(p=="c") {
if(irv.value) cr=irv.value;
if(ivv.value) cv=ivv.value;
if(ibv.value) cb=ibv.value
}
if(p=="-r") {
if(drv.value) cr=eval(eval(cr)-eval(drv.value));
else {drv.value=1;cr--}
}
if(p=="+r") {
if(drv.value) cr=eval(eval(cr)+eval(drv.value));
else {drv.value=1;cr++}
}
if(p=="-v") {
if(dvv.value) cv=eval(eval(cv)-eval(dvv.value));
else {dvv.value=1;cv--}
}
if(p=="+v") {
if(dvv.value) cv=eval(eval(cv)+eval(dvv.value));
else {dvv.value=1;cv++}
}
if(p=="-b") {
if(dbv.value) cb=eval(eval(cb)-eval(dbv.value));
else {dbv.value=1;cb--}
}
if(p=="+b") {
if(dbv.value) cb=eval(eval(cb)+eval(dbv.value));
else {dbv.value=1;cb++}
}
c=cr;
if(c>255) {
alert("Max=255 ROUGE dj atteint");
c=cr=irv.value=255
}
else if(c<0) {
alert("Min=0 ROUGE dj atteint");
c=cr=irv.value=0
}
if(c<1) r="00";
else if(c<16) r="0"+eval(c).toString(16);
else r=eval(c).toString(16);
c=cv;
if(c>255) {alert("Max=255 VERT dj atteint");c=cv=ivv.value=255;}
else if(c<0) {alert("Min=0 VERT dj atteint");c=cv=ivv.value=0;}
if(c<1) v="00";
else if(c<16) v="0"+eval(c).toString(16);
else v=eval(c).toString(16);
c=cb;
if(c>255) {alert("Max=255 BLEU dj atteint");c=cb=ibv.value=255;}
else if(c<0) {alert("Min=0 BLEU dj atteint");c=cb=ibv.value=0;}
if(c<1) b="00";
else if(c<16) b="0"+eval(c).toString(16);
else b=eval(c).toString(16);
bgc="#"+r+v+b;
document.getElementById('c1').style.background=bgc;
}
function verifier(){
verif.value=document.getElementById('c1').style.background;
ksp.value=r,vsp.value=v,osp.value=b;
crvh.style.visibility="visible";
cvvh.style.visibility="visible";
cbvh.style.visibility="visible";
// crv.value=crvh.value.toString();
// cvv.value=cvvh.value.toString();
// cbv.value=cbvh.value.toString();
}
</script>
REMARQUE :
Mots-clés :
diasfb@mail2world.com
Autre Lecture :
https://www.scribd.com/document/374738470/Le-Plus-Grand-Secret-de-La-Creation
• https://www.scribd.com/document/377036251/Le-Dosage-Des-Medicaments-en-Cac-Cas
• https://www.scribd.com/document/377035454/Le-Hasard-Des-Thermometres-Non-contact-
a-Infrarouge
• https://www.scribd.com/document/376222482/Petite-Introduction-Aux-Fonctions-
JavaScript
• https://www.scribd.com/document/376221919/La-Foi-en-Jesus-Christ-Pour-Quoi-Faire
• https://www.scribd.com/document/375689778/Lacuite-visuelle-angulaire
• https://www.scribd.com/document/375349851/La-variable-This
• https://www.scribd.com/document/375024162/Fonctions-Imbriquees-en-JS
• https://www.scribd.com/document/374789297/Format-Interne-Des-Objets-JavaScript
• https://www.scribd.com/document/374788758/Iterations-en-JavaScript
• https://www.scribd.com/document/374738470/Le-Plus-Grand-Secret-de-La-Creation
• https://www.scribd.com/document/374597969/Nouvelle-Formule-d-IMC-indice-de-
doduite-Selon-Dr-Diasoluka
• https://www.scribd.com/document/373847209/Property-Descriptors
• https://www.scribd.com/document/373833282/l-Objet-Global-Window
• https://www.scribd.com/document/372665249/Javascript-Tome-II
• https://www.scribd.com/document/355291488/motilite-oculaire-2
• https://www.scribd.com/document/355291239/motilite-oculaire-I
• https://www.scribd.com/document/355290248/Script-d-Analyses-Des-Reflexes-
Pupillomoteurs
• https://www.scribd.com/document/321168468/Renseignements-Id-et-Anthropometriques
• https://www.scribd.com/document/320856721/Emission-31-Jul-2016
• https://www.scribd.com/document/318182982/Complication-Visuelle-du-Traitement-de-La-
Malaria
• https://www.scribd.com/document/318180637/Rapport-Entre-Oxymetrie-Et-Type-
Respiration
• https://www.scribd.com/document/315746265/Classification-Des-Medicaments
• https://www.scribd.com/document/315745909/Incongruences-Heresies-et-Heterodoxies-
de-la-Notion-de-Laboratoire
• https://www.scribd.com/document/315745725/Rapport-Entre-Oxymetrie-Et-Type-
Respiration