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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product