mapping situation
in
Programming Questions
•
9 months ago
hi, here i map j range to s range
but i need s values to pass/slide from a point to b thru all the in-between values also
not jump randomly from a point to another like j does
what's the solution?
void draw(){
float j=random(-0.2, 0.1);
float s=map(j,-0.2,0.1,-10,10);
println(s);
}
but i need s values to pass/slide from a point to b thru all the in-between values also
not jump randomly from a point to another like j does
what's the solution?
void draw(){
float j=random(-0.2, 0.1);
float s=map(j,-0.2,0.1,-10,10);
println(s);
}
1