manpagez: man pages & more
info mathgl_en
Home | html | info | man
[ << ] [ < ] [ 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;
}
Example of Fog().

This document was generated on March 21, 2014 using texi2html 5.0.

© manpagez.com 2000-2025
Individual documents may contain additional copyright information.

AltStyle によって変換されたページ (->オリジナル) /