[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.6.6 Belt sample

Belt draw surface by belts. 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("Belt plot"); gr->Rotate(50,60);
  gr->Box();  gr->Belt(a);
  return 0;
}
Example of Belt()

This document was generated by Autobuild on July 16, 2012 using texi2html 1.82.