Image.Plug.Pipeline.Ops.DropShadow (image_plug v0.1.0)

Copy Markdown View Source

Drop-shadow operation. The shadow is the source's alpha silhouette, blurred, tinted, scaled by :opacity, and composited beneath the original at (:dx, :dy). Maps to ImageKit's e-shadow=... parameter family.

:color is normalised to a 3-element [r, g, b] 0..255 list by the provider parser.

Summary

Types

t()

@type t() :: %Image.Plug.Pipeline.Ops.DropShadow{
  color: [non_neg_integer()],
  dx: integer(),
  dy: integer(),
  opacity: float(),
  sigma: float()
}