Sha256: 8887e58b3a0c1a58f1e7ad1df5ce9a9ae2b242cea62e52a8f63fa0423c714e78

Contents?: true

Size: 1015 Bytes

Versions: 3

Compression:

Stored size: 1015 Bytes

Contents

hand
====

Renders a range of cards fanned out as if in a hand. Saves as PNG regardless of back end.

Options
-------

radius
  default: ``:auto``

  The distance from the bottom of each card to the center of the fan. If set to ``:auto``, then it is computed as 30% of the card's height. Why 30%? Because it looks good that way. Reasons.

angle_range
  default: ``((Math::PI / -4.0)..(Math::PI / 2))``

  The overall width of the fan, in radians. Angle of zero is a vertical card. Further negative angles widen the fan counter-clockwise and positive angles widen the fan clockwise.

margin
  default: ``75``

  the margin around the entire image. Supports :doc:`/units`.

fill_color
  default: ``:white``

  Backdrop color. See :doc:`/colors`.

.. include:: /args/trim.rst

file
  default: ``'hand.png'``

  The file to save relative to the current directory. Will overwrite without warning.

.. include:: /args/output_dir.rst
.. include:: /args/range.rst

Examples
--------

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
squib-0.12.0 docs/dsl/hand.rst
squib-0.11.0 docs/dsl/hand.rst
squib-0.10.0 docs/dsl/hand.rst