[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
2.9.5 Adding fog
MathGL can add a fog to the image. Its switching on is rather simple – just use fog function. There is the only feature – fog is applied for whole image. Not to particular subplot. The sample code is:
int sample(mglGraph *gr) { mglData a; mgls_prepare2d(&a); gr->Title("Fog sample"); gr->Light(true); gr->Rotate(50,60); gr->Fog(1); gr->Box(); gr->Surf(a); return 0; }
This document was generated on March 21, 2014 using texi2html 5.0.