PixelImageOptions
io.worxbend.tui.widgets.PixelImageOptions
final case class PixelImageOptions(fit: ImageFit = ..., cellAspect: Double = ..., background: Rgb = ...)
The appearance knobs of a PixelImage. PixelImageOptions() is the widget its bare constructor draws.
Value parameters
- background
-
the colour translucent pixels are blended over in the half-block fallback. A picture protocol blends over the real cells instead.
- cellAspect
-
how many times taller than wide one terminal cell is, used to keep the picture's shape under ImageFit.Contain. Two is what nearly every monospace font gives; a widget cannot ask the terminal, because widgets never see one.
- fit
-
how the picture fits the area; see ImageFit.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article