From the file (Free web design) Values.xls from the CustomAlphaTest example
From the file Values.xls from the CustomAlphaTest example 0 0 1000 0.1 3000 0.4 4000 0.2 6000 0.8 10000 0.5 12000 0.1 14000 1.0 16000 0.1 The text file defines an ordered series of time and alpha value pairs (figure 12.3). Times are specified in milliseconds. The FileAlphaclass overrides the following Alphamethods. public void setStartTime(long l) public long getStartTime() public void setLoopCount( int i ) public int getLoopCount() public boolean finished() public float value( long time ) Please refer to the FileAlphaclass for details. The CustomAlphaTestis also interesting in that it interpolates the position of a ColorCubeusing the FileAlphaand plots the value and time of the FileAlphaon the graph shown in figure 12.3. Figure 12.3 The FileAlpha class loads times and Alpha values from a file and linearly interpolates between them to provide a highly flexible Alpha function 198
In case you need quality webspace to host and run your web applications, try our personal web hosting services.