Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RenderOption ¶
type RenderOption func(o *opt)
func FitScreen ¶
func FitScreen() RenderOption
FitToScreen tries to figure out the dimentions of the terminal (on stdout). If this fails ... no image dimensions are set. This is so that the image rendering can never fail. If you are unsure about this behavior just use FitTo.
func FitTo ¶
func FitTo(width, height int) RenderOption
FitTo is an option to make the image fit into the box defined by width and height
func WithColorProfile ¶
func WithColorProfile(profile termenv.Profile) RenderOption
WithColorProfile is an option that makes Render use the given profile instead of querying the terminal(emulator) for what it supports.
Click to show internal directories.
Click to hide internal directories.