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()
Link to this type
qrcode_color()
Link to this type
svg_string()
svg_string()
svg_string() :: String.t()
svg_string() :: String.t()
Link to this type
t()
t()
t() :: %QRCode.Svg{
background_color: background_color(),
qrcode_color: qrcode_color(),
scale: integer()
}
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(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())
generate(MatrixReloaded.Matrix.t(), svg_string(), t()) :: :ok | Result.Error.t(File.posix() | :badarg | :terminated | String.t())