PLEASE RELOAD
Tile



Info

Shapes may be filled with tiles instead of colors. Any image may be used as a tile and depending on it's color palette you get some interesting effects and textures.

Tiles may also be created by you for use.These are being explored.

Draw

For this we will concentrate on using an import image for our tile. We import our image just as we did when annotating. We then assign it the name of tile. And we make it transparent so only the image shows. We then draw the shapes as regular but instead of designating the color for the fill at the end we designate tile. Here's an example:
//imageFilledRectangle ($im, 20, 50, 200, 170, IMG_COLOR_TILED);

Different graphics will give different results...Experiment and you'll find something that appeals to you.

The tile image can be any URL from anywhere on the web.. So transload or link to this nice leopard skin. Leopard



These are the same shapes as in previous lessons. We've just added the tile codes right after the Brush codes and then drawn our object.


http://www.simplysally.com/GD/lessons/lesson7.txt


GD BasicsHome