============= Commands List ============= .. |dash| unicode:: U+2014 .. EM DASH SIGN This list provides an alphabetic summary of all the :ref:`commands ` specific to **protograf**. Remember that using certain commands with a **lowercase initial** defers their activation to later in the script! This list is not intended to be used for learning, but just provides a handy cross-reference to the detailed information for that command. .. HINT:: :doc:`protograf ` is a small, specialised tool; but its part of a much greater Python language "ecosystem", and so commands and tools from the :doc:`Python language ` |dash| or other `Python packages `_ |dash| can be used to further enhance your own script. - :ref:`Arc ` * - a geometric shape that can be drawn on a page - :ref:`Arrow ` * - a geometric shape that can be drawn on a page - :ref:`Blueprint ` - a grid of lines that can be drawn on a page (see also further :ref:`customisation options `) - :ref:`Bezier ` * - a geometric shape that can be drawn on a page - :ref:`BGG ` - access boardgame data from BGG (typically for display on one or more :ref:`cards `) - :ref:`Card ` - details for a card that is part of a :ref:`deck ` - :ref:`Circle ` * - a geometric shape that can be drawn on a page (see also further :ref:`customisation options `) - :ref:`Chord ` * - a geometric shape that can be drawn on a page - :ref:`Common ` - set the properties that will be exactly the same for any shape using them (see also :ref:`Default `) - :ref:`Counter ` - details for a counter that is part of a :ref:`countersheet ` - :ref:`countersheet ` - details for a countersheet, containing one or more counters - :ref:`Create ` - start of a script; define the paper size, output filename, margins, units, fill color etc. - :ref:`Cross ` * - a geometric shape that can be drawn on a page - :ref:`Cube ` * - create isometric and shaded view of a cube - :ref:`Data ` - provides a set of information for a :ref:`deck ` of :ref:`cards ` :ref:`countersheet ` - typically sourced from a CSV or Excel file, or a Google Sheet - :ref:`D6 ` * - create top-down view of a six-sided die - :ref:`Deck ` - details for a deck, containing one or more :ref:`cards ` - :ref:`Default ` - set the properties that can be used by any number of shapes and overridden by them (see also :ref:`Common `) - :doc:`DiamondLocations `- defines an ordered series of row and column locations that create a diamond grid of shapes - the grid itself is not displayed; it is used in a :ref:`Layout ` command - :ref:`Domino ` * - create top-down view of a domino - :ref:`Dot ` * - a geometric shape that can be drawn on a page - :ref:`DotGrid ` - a set, or group, of dots that can be drawn on a page - :ref:`Ellipse ` * - a geometric shape that can be drawn on a page - :ref:`Extract ` - allows portions of pages to be extracted as PNG images - :ref:`Font ` - set the font properties for any :ref:`Text ` drawn on a page - :ref:`IconFont ` - set the font properties for any referenced Unicode symbols embedded in subsequent :ref:`Text ` - :ref:`Grid ` - a set, or group, of lines that can be drawn on a page - :ref:`group ` - a way to reference a stack of shapes that all need to be drawn together on a :ref:`card ` - :ref:`Hexagon ` * - a geometric shape that can be drawn on a page (see also further :ref:`customisation options `) - :ref:`Hexagons ` - a set, or group, of hexagons that can be drawn on a page (see also :doc:`hexagonal grids `) - :ref:`Image ` - an external image to be shown on a page or card - :ref:`L ` - short for *Lookup*; a way to access data in a set from another :ref:`card ` in a :ref:`deck ` - :ref:`Layout ` - used in conjuction with a location-based grid and specifies the shapes that are to be drawn at that grid's locations - :ref:`Line ` * - a geometric shape that can be drawn on a page - :ref:`Lines ` - a set, or group, of lines that can be drawn on a page - :ref:`LinkLine ` - a line joining one or more hexagons inside a hexagonal grid - :ref:`Load ` - at the start of a script; define an existing PDF file to be loaded - :ref:`Matrix ` - a way to create a set of data, inside a script, for use in a :ref:`deck ` of :ref:`cards ` - :ref:`PageBreak ` - set the start of a new page in the document; not required for a :ref:`Deck ` - :ref:`Pentomino ` * - a compound shape made up of five squares - :ref:`Pod ` * - a geometric shape that can be drawn on a page - :ref:`Point ` - a command to set both x- and y- values for a position - :ref:`Polygon ` * - a geometric shape that can be drawn on a page - :ref:`Polyline ` * - a geometric shape that can be drawn on a page - :ref:`Polyomino ` * - a compound shape made up of one or more squares - :ref:`Polyshape ` * - an irregular geometric shape that can be drawn on a page - :ref:`Random ` - generate a random number within a range - :doc:`Repeat ` - repeat the drawing of a shape across a rectangular grid pattern - :ref:`Rectangle ` * - a geometric shape that can be drawn on a page (see also further :ref:`customisation options `) - :ref:`Rectangles ` - a set, or group, of rectangles that can be drawn on a page - :doc:`RectangularLocations ` - defines an ordered series of row and column locations that create a rectangular grid of shapes - the grid itself is not displayed; it is used in a :ref:`Layout ` command. - :ref:`Rhombus ` * - a geometric shape that can be drawn on a page - :ref:`S ` - short for *Selection*; the way to draw a shape on a :ref:`card ` depending on a condition - :ref:`Save ` - end of a script; set the export image file type and filenames, as well as resolution - :ref:`Sector ` * - a geometric shape that can be drawn on a page - :doc:`Sequence ` - lay out a number of items in a straight line - :ref:`Square ` * - a geometric shape that can be drawn on a page - :ref:`Stadium ` * - a geometric shape that can be drawn on a page - :ref:`Star ` * - a geometric shape that can be drawn on a page - :ref:`Starfield ` - a set, or group, of dots that can be drawn on a page - :ref:`T ` - short for *Template*; the way to access an item in a column from a set of :ref:`data ` for a :ref:`card ` - :ref:`Table ` - a grid of rectangles that can be drawn on a page and used to display :ref:`Text ` or :ref:`Images ` - :ref:`Tetromino ` * - a compound shape made up of four squares - :ref:`Text ` * - a shape containing text that can be displayed on a page - :ref:`Today ` - display - as text - the current date and time - :doc:`Track ` - draw any number of shapes at the vertices of another shape - :ref:`Trapezoid ` * - a geometric shape that can be drawn on a page - :ref:`Triangle ` * - a geometric shape that can be drawn on a page - :doc:`TriangularLocations `- defines an ordered series of row and column locations that create a triangular grid of shapes - the grid itself is not displayed; it is used in a :ref:`Layout ` command .. IMPORTANT:: Commands marked with an asterisk (``*``) can be given with a uppercase or lowercase initial (``Commmand`` vs ``command``); the former meaning that the shape should be drawn directly at that point in the script; and the latter that it should be "stored" to be drawn later. This is especially relevant when specifying card designs.