Modérateur: gg
coord=0;
?pr,Pre Contraste,0,100,0;
?pourcent,Lumiere générale,0,4000,1800;
?ef,Force,0,20,9;
?cont,Contraste,0,100,0;
?mo,Monochrome,0,1,0;
pourcent=pourcent/10;
pourcent=pourcent+1;
cont=cont/100;
ef=20-ef;
SetMatrix5(1,
0,1,1,1,0, 1,1,1,1,1,
1,1,ef,1,1, 1,1,1,1,1,
0,1,1,1,0, 1/(20+ef));
pr=pr/100;
pl=pl/100;
if ( pr > 0 ){loop=2;}
if( loop==2){
R=R+(pr*(R-127));
G=G+(pr*(G-127));
B=B+(pr*(B-127));
}
if (loop==1){
r2=R;g2=G;b2=B;
Conv(1,x,y);
R=((r2*pourcent)/R);
G=((g2*pourcent)/G);
B=((b2*pourcent)/B);
if (mo==1){
v=(R+G+B)/3;
R=v;G=v;B=v;
}
R=R+(cont*(R-127));
G=G+(cont*(G-127));
B=B+(cont*(B-127));
}
coord=0;
?pc,Centre Contraste,1,254,127;
?pr,Pre Contraste,0,100,0;
?pourcent,Lumiere générale,0,4000,1800;
?ef,Force,0,20,9;
?cont,Contraste,0,100,0;
?mo,Monochrome,0,1,0;
pourcent=pourcent/10;
pourcent=pourcent+1;
cont=cont/100;
ef=20-ef;
SetMatrix5(1,
0,1,1,1,0, 1,1,1,1,1,
1,1,ef,1,1, 1,1,1,1,1,
0,1,1,1,0, 1/(20+ef));
pr=pr/100;
pl=pl/100;
if ( pr > 0 ){loop=2;}
if( loop==2){
R=R+(pr*(R-pc));
G=G+(pr*(G-pc));
B=B+(pr*(B-pc));
}
if (loop==1){
r2=R;g2=G;b2=B;
Conv(1,x,y);
R=((r2*pourcent)/R);
G=((g2*pourcent)/G);
B=((b2*pourcent)/B);
if (mo==1){
v=(R+G+B)/3;
R=v;G=v;B=v;
}
R=R+(cont*(R-127));
G=G+(cont*(G-127));
B=B+(cont*(B-127));
}
coord=0;
?pr,Pre Contraste,0,100,0;
?large,Rayon,3,10,5;
?pourcent,Lumiere générale,0,4000,1800;
?ef,Force,0,20,9;
?cont,Contraste,0,100,0;
pourcent=pourcent/10;
pourcent=pourcent+1;
cont=cont/100;
ef=20-ef;
SetMatrix5(1,
0,1,1,1,0, 1,1,1,1,1,
1,1,ef,1,1, 1,1,1,1,1,
0,1,1,1,0, 1/(20+ef));
pr=pr/100;
pl=pl/100;
ll=int( large/2);
if ( pr > 0 ){loop=2;}
if( loop==2){
HLS(R,G,B);
S=0;
RGB(H,L,S);
R=R+(pr*(R-127));
}
if (loop==1){
rr=0;nb=0;
yy=y-ll;fy=y+ll;fx=x+ll;
while ( yy<fy){
xx=x-ll;
while (xx<fx){
if( (xx != x)&&(yy!=y)){
rr=rr+R(xx,yy);
nb=nb+1;}
xx=xx+1;}
yy=yy+1;}
;rr=rr/nb;
R=((R*pourcent)/rr);
G=R;
B=R;
}
R=R+(cont*(R-127));
G=R;
B=R;
Retourner vers Développement de Pixia
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité