Next: , Previous: , Up: 2D samples   [Contents][Index]

3.6.6 Fall sample

Function fall draw waterfall surface. You can use meshnum for changing number of lines to be drawn. Also you can use ‘x’ style for drawing lines in other direction. The sample code is:

int sample(mglGraph *gr)
  mglData a;  mgls_prepare2d(&a);
  gr->Title("Fall plot"); gr->Rotate(50,60);
  gr->Box();  gr->Fall(a);
  return 0;

Example of Fall()