/[gzz]/gzz/gfx/libtexture/irregu.texture
ViewVC logotype

Diff of /gzz/gfx/libtexture/irregu.texture

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by jvk, Mon Oct 21 12:53:56 2002 UTC revision 1.6 by jvk, Mon Oct 21 17:37:08 2002 UTC
# Line 6  Line 6 
6  #define INVERT(i, x) ((i) + 2 * (0.5 - (i)) * (x))  #define INVERT(i, x) ((i) + 2 * (0.5 - (i)) * (x))
7    
8  float func(float x, float y) {  float func(float x, float y) {
9      float t = x*10;      float t = x*5;
10      float u = y*10;      float u = y*7;
11      return  .5 + .2 * sin(x*M_PI*2*4) - .2*(t-floor(t)) + .2*sin(y*M_PI*2)      return  .5 + .1 * sin(x*M_PI*2*4) - .1*(t-floor(t)) + .1*sin(y*M_PI*2)
12          + .2*(u-floor(u));          - .1*(u-floor(u));
13  }  }
14    
15  float filter(float *data, int w, int h, int c, float x, float y) {  float filter(float *data, int w, int h, int c, float x, float y) {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26