Project

General

Profile

« Previous | Next » 

Revision 59759251

Added by Leszek Koltunski almost 8 years ago

Major push towards simplifying DistortedObject's public API.
All Fragment effects are using the new API - the 'DataND' marker interfaces.

View differences:

src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java
34 34
import org.distorted.library.type.Static1D;
35 35
import org.distorted.library.Distorted;
36 36
import org.distorted.library.DistortedBitmap;
37
import org.distorted.library.type.Static4D;
37 38

  
38 39
import android.graphics.Bitmap;
39 40
import android.graphics.BitmapFactory;
......
104 105
        tmp = (DistortedBitmap)mCircleNode[i].getObject();
105 106
        tmp.move( new Static3D(positions[2*i], positions[2*i+1], 0) );
106 107
        tmp.rotate( center, mRot, axis );
107
        tmp.chroma(0.8f, new Static3D(colors[3*i],colors[3*i+1], colors[3*i+2]));
108
        tmp.chroma( new Static4D(0.8f, colors[3*i],colors[3*i+1], colors[3*i+2]) );
108 109
        }
109 110
      }
110 111

  

Also available in: Unified diff