barlix v0.4.0 Barlix.PNG View Source
This module implements the PNG renderer.
Link to this section Summary
Functions
Renders the given code in png image format.
Link to this section Functions
Link to this function
print(arg, options)
View Source
print(arg, options)
View Source
print(Barlix.code(), Keyword.t()) :: :ok
print(Barlix.code(), Keyword.t()) :: :ok
Renders the given code in png image format.
Options
:file
- (path) - target file path.:xdim
- (integer) - width of a single bar in pixels. Defaults to1
.:height
- (integer) - height of the bar in pixels. Defaults to100
.:margin
- (integer) - margin size in pixels. Defaults to10
.