CPZPixel

org.cosplay.CPZPixel
final case class CPZPixel(px: CPPixel, z: Int) extends Serializable

Immutable container that combines pixel and its Z-index.

Value parameters

px

Pixel.

z

Pixel's Z-index.

Attributes

See also
Source
CPZPixel.scala
Graph
Supertypes
trait Product
trait Equals
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

inline def withBg(c: Option[CPColor]): CPZPixel

Gets a copy of this Z-pixel with a new background.

Gets a copy of this Z-pixel with a new background.

Value parameters

c

New background.

Attributes

Source
CPZPixel.scala
inline def withChar(ch: Char): CPZPixel

Gets a copy of this Z-pixel with a new character.

Gets a copy of this Z-pixel with a new character.

Value parameters

ch

New character.

Attributes

Source
CPZPixel.scala
inline def withFg(c: CPColor): CPZPixel

Gets a copy of this Z-pixel with a new foreground.

Gets a copy of this Z-pixel with a new foreground.

Value parameters

c

New foreground.

Attributes

Source
CPZPixel.scala
inline def withFgBg(fg: CPColor, bg: Option[CPColor]): CPZPixel

Gets a copy of this Z-pixel with a new foreground and background.

Gets a copy of this Z-pixel with a new foreground and background.

Value parameters

bg

New background.

fg

New foreground.

Attributes

Source
CPZPixel.scala
inline def withTag(t: Int): CPZPixel

Gets a copy of this Z-pixel with a new tag.

Gets a copy of this Z-pixel with a new tag.

Value parameters

t

New tag.

Attributes

Source
CPZPixel.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val bg: Option[CPColor]

Shortcut for pixel's background.

Shortcut for pixel's background.

Attributes

Source
CPZPixel.scala
val char: Char

Shortcut for pixel's character.

Shortcut for pixel's character.

Attributes

Source
CPZPixel.scala
val fg: CPColor

Shortcut for pixel's foreground.

Shortcut for pixel's foreground.

Attributes

Source
CPZPixel.scala
val tag: Int

Shortcut for pixel's tag.

Shortcut for pixel's tag.

Attributes

Source
CPZPixel.scala