Luxor generally tries to keep to the Julia convention of ‘width’ then ‘height’, ‘row’ then ‘column’. Unlike a Tiler, the Table iterator lets you have columns with different widths, and rows with different heights. The Table iterator can be used to define tables: rectangular grids with a specific number of rows and columns. You can obtain the centerpoints of all the tiles in one go with: first.(collect(tiles)) Partition is like Tiler, but you specify the width and height of the tiles, rather than how many rows and columns of tiles you want. Textcentered(string(n), pos + Point(0, 5)) Subtiles = Tiler(tiles.tilewidth, tiles.tileheight, 4, 4, margin=5)īox(pos1, subtiles.tilewidth, subtiles.tileheight, action=:fill) In this example, every third tile is divided up into subtiles and colored: tiles = Tiler(800, 500, 4, 5, margin=5)īox(pos, tiles.tilewidth, tiles.tileheight, action=:fill) The Tiler iterator returns the center point and tile number of each tile in turn. The drawing area (or any other area) can be divided into rectangular tiles (as rows and columns) using the Tiler and Partition iterators. There are also functions to make hexagonal grids. Their job is to provide you with centerpoints you'll probably want to use these in combination with the cell's widths and heights. Table: a rectangular grid which you specify by providing row and column numbers, row heights and column widths.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |