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 Unit Conversion.

fill_color

default: :white

Backdrop color. See Specifying Colors & Gradients.

trim

default: 0

the margin around the card to trim before putting into the image

trim_radius

default: 0

the 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: _output

The directory for the output to be sent to. Will be created if it doesn’t exist. Relative to the current directory.

range

default: :all

the range of cards over which this will be rendered. See Using range to specify cards

Examples