curve effect (simple math question)
in
Programming Questions
•
2 years ago
I got a power value beteen 0 and 1.
The length of a shape i create is based on that.
I only want the difference closer to 0 to be bigger.
I only can figure out the opposite:
- for(float i = 0; i <= 1; i+= 0.1){
- float p = pow(i, 3);
- println(nfc(i, 3) + "\t" + nfc(p, 3));
- }
0,000
0,000
0,100
0,001
0,200
0,008
0,300
0,027
0,400
0,064
0,500
0,125
0,600
0,216
0,700
0,343
0,800
0,512
0,900
0,729
So i kinda what to inverse that effect.
Could someone help me.
1