hand¶
Renders a range of cards fanned out as if in a hand. Saves as PNG regardless of back end.
Options¶
- radius
default:
:autoThe 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:
75the margin around the entire image. Supports Unit Conversion.
- fill_color
default:
:whiteBackdrop color. See Specifying Colors & Gradients.
- trim
default:
0the margin around the card to trim before putting into the image
- trim_radius
default:
0the rounded rectangle radius around the card to trim before putting into the image
- file
default:
'hand.png'The file to save relative to the current directory. Will overwrite without warning.
- dir
default:
_outputThe directory for the output to be sent to. Will be created if it doesn’t exist. Relative to the current directory.
- range
default:
:allthe range of cards over which this will be rendered. See Using range to specify cards