11.137 Sample ‘tile

Function tile draw surface by tiles.

MGL code:

call 'prepare2d'
title 'Tile plot':rotate 50 60:box:tile a

C++ code:

void smgl_tile(mglGraph *gr)
{
	mglData a;	mgls_prepare2d(&a);
	if(big!=3)	gr->Title("Tile plot");
	gr->Rotate(40,60);	gr->Box();	gr->Tile(a);
}
Sample tile