View Source Image.Options.LinearGradient (image v0.48.1)

Options and option validation for Image.linear_gradient/2.

Summary

Types

Link to this type

linear_gradient_option()

View Source
@type linear_gradient_option() ::
  {:start_color, Image.Color.rgb_color()}
  | {:finish_color, Image.Color.rgb_color()}
  | {:angle, number()}

Options applicable to Image.linear_gradient/2.

Link to this type

linear_gradient_options()

View Source
@type linear_gradient_options() :: [linear_gradient_option()] | map()

Options list or map for Image.linear_gradient/2.

Functions

Link to this function

validate_options(options)

View Source

Validate the options for Image.linear_gradient/2.