docs: porting shapes args over

This commit is contained in:
Andy Meneely
2016-01-28 22:36:38 -05:00
parent cbe013323d
commit b0c4bb3dd3
18 changed files with 357 additions and 8 deletions
+34
View File
@@ -0,0 +1,34 @@
fill_color
default: ``'#0000'`` (fully transparent)
the color or gradient to fill with. See :doc:`/colors`.
stroke_color
default: ``:black``
the color with which to stroke the outside of the rectangle. See :docs:`/colors`.
stroke_width
default: ``2``
the width of the outside stroke. Supports :doc:`/units`.
stroke_strategy
default: ``:fill_first``
Specify whether the stroke is done before (thinner) or after (thicker) filling the shape.
Must be either ``:fill_first`` or ``:stroke_first`` (or their string equivalents).
dash
default: ``''`` (no dash pattern set)
Define a dash pattern for the stroke. This is a special string with space-separated numbers that define the pattern of on-and-off alternating strokes, measured in pixels or units. For example, ``'0.02in 0.02in'`` will be an equal on-and-off dash pattern. Supports :doc:`/units`.
cap
default: ``:butt``
Define how the end of the stroke is drawn. Options are ``:square``, ``:butt``, and ``:round`` (or string equivalents of those).
+1
View File
@@ -0,0 +1 @@
All of these options support arrays and singleton expansion (except for **range**). See :doc:`/arrays` for deeper explanation.
+4
View File
@@ -0,0 +1,4 @@
layout
default: ``nil``
entry in the layout to use as defaults for this command. See :doc:`/layouts`.
+4
View File
@@ -0,0 +1,4 @@
range
default: ``:all``
the range of cards over which this will be rendered. See :ref:`using_ranges`
+10
View File
@@ -0,0 +1,10 @@
width
default: ``:deck`` (the width of the deck)
the width of the box. Supports :doc:`/units`.
height
default: ``:deck`` (the height of the deck)
the height of the box. Supports :doc:`/units`.
+10
View File
@@ -0,0 +1,10 @@
x
default: ``0``
the x-coordinate to place, relative to the upper-left corner of the card and moving right as it increases. Supports :doc:`/units`.
y
default: ``0``
the y-coordinate to place, relative to the upper-left corner of the card and moving downward as it increases. Supports :doc:`/units`.