Puoi aprire il codice e modificare la funzione: vedi l'Help
You can open the Code and modify the function: see the Help
HELP

// --- f blue, g green, h red, k orange ----

function f(x) { y = 1-x  ; return y }
function g(x) { y = -1-x; return y }

aX = -5; bX = 5; aY = -5; bY = 5
Dx = 1; Dy = 1

// QQ1x,QQ1y, QQ2x,QQ2y very little light red,blue

i=0
for(j=0; j < 1e5; j=j+1) {xp=Math.random()*(bX-aX)+aX; yp=Math.random()*(bY-aY)+aY
                      if(yp > g(xp) && yp < f(xp)) {QQ1x[i]=xp; QQ1y[i]=yp; i=i+1}}