Revision 87006e8d
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/dynamic/DynamicSpeedSurfaceView.java | ||
---|---|---|
251 | 251 |
{ |
252 | 252 |
if( x>=0.0f && x<=1.0f ) |
253 | 253 |
{ |
254 |
if( mMode==Dynamic.MODE_PATH ) x = x>0.5f ? 2-2*x : 2*x; |
|
254 | 255 |
int pos = (int)((NUM_POINTS-1)*x); |
255 | 256 |
mPoints[pos] =y; |
256 | 257 |
refreshScreen = true; |
Also available in: Unified diff
Minor bugfix to the Dynamic app