Bloom.Components.GradientBlob (bloom v0.0.8)

Summary

Functions

Renders a gradient blob component with a randomly generated polygon shape.

Functions

Link to this function

gradient_blob(assigns)

Renders a gradient blob component with a randomly generated polygon shape.

Assigns

  • position: The position of the blob. Can be either "top" or "bottom". Default is "top".
  • offset: The offset of the blob from the top or bottom edge in rem units. Default is 0.
  • width: The width of the blob in rem units. Default is 36.
  • rotate: The rotation of the blob in degrees. Default is 0.
  • from_color: The starting color of the gradient. Default is "#ff80b5".
  • to_color: The ending color of the gradient. Default is "#9089fc".
  • seed: A seed value used to generate the random polygon shape. Default is 0.

Attributes

  • position (:string) - Defaults to "top".
  • offset (:integer) - Defaults to 0.
  • width (:integer) - Defaults to 36.
  • rotate (:integer) - Defaults to 0.
  • from_color (:string) - Defaults to "#ff80b5".
  • to_color (:string) - Defaults to "#9089fc".
  • seed (:integer) - Defaults to 0.