qr_code v1.0.4 QRCode.Svg

SVG structure and helper functions.

Link to this section Summary

Link to this section Types

Link to this type

background_color()
background_color() :: String.t() | tuple()

Link to this type

qrcode_color()
qrcode_color() :: String.t() | tuple()

Link to this type

svg_string()
svg_string() :: String.t()

Link to this type

t()
t() :: %QRCode.Svg{
  background_color: background_color(),
  qrcode_color: qrcode_color(),
  scale: integer()
}

Link to this section Functions

Link to this function

generate(matrix, svg_name \\ "tmp/qr_code.svg", settings \\ %__MODULE__{})
generate(MatrixReloaded.Matrix.t(), svg_string(), t()) ::
  :ok | Result.Error.t(File.posix() | :badarg | :terminated | String.t())