Companion object with utility functions.
Attributes
- Companion:
- class
- Source:
- CPPixel.scala
- Graph
- Supertypes
- trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- CPPixel.type
Members list
Type members
Inherited types
The names of the product elements
The name of the type
Value members
Concrete methods
Creates new pixel without background and default zero tag.
Creates new pixel without background and default zero tag.
Attributes
- char
Pixel character.
- fg
Pixel foreground.
- Note:
Pixel tag will be set to zero.
- Source:
- CPPixel.scala
Creates new pixel without background.
Creates new pixel without background.
Attributes
- char
Pixel character.
- fg
Pixel foreground.
- tag
Pixel tag.
- Source:
- CPPixel.scala
Creates new pixel.
Creates new pixel.
Attributes
- bg
Pixel background.
- char
Pixel character.
- fg
Pixel foreground.
- Note:
Pixel tag will be set to zero.
- Source:
- CPPixel.scala
Creates new pixel.
Creates new pixel.
Attributes
- bg
Optional pixel background.
- char
Pixel character.
- fg
Pixel foreground.
- Note:
Pixel tag will be set to zero.
- Source:
- CPPixel.scala
Creates new pixel.
Creates new pixel.
Attributes
- bg
Pixel background.
- char
Pixel character.
- fg
Pixel foreground.
- tag
Pixel tag.
- Source:
- CPPixel.scala
Creates new pixel.
Creates new pixel.
Attributes
- bg
Optional pixel background.
- char
Pixel character.
- fg
Pixel foreground.
- tag
Pixel tag.
- Source:
- CPPixel.scala
Makes a sequence of pixel from the range of characters. Range must be sequential.
Makes a sequence of pixel from the range of characters. Range must be sequential.
Attributes
- bg
Background color.
- fg
Foreground color.
- first
First character in the range.
- last
Last character in the range.
- Note:
Pixel tag will be set to zero.
- Source:
- CPPixel.scala
Makes a sequence of pixel from the range of characters. Range must be sequential.
Makes a sequence of pixel from the range of characters. Range must be sequential.
Attributes
- bgf
Function for background color.
- fgf
Function for foreground color.
- first
First character in the range.
- last
Last character in the range.
- Note:
Pixel tag will be set to zero.
- Source:
- CPPixel.scala
Makes a sequence of pixel from given string.
Makes a sequence of pixel from given string.
Attributes
- bg
Background color.
- chars
Sequence of characters.
- fg
Foreground color.
- Note:
Pixel tag will be set to zero.
- Source:
- CPPixel.scala
Makes a sequence of pixel from given string.
Makes a sequence of pixel from given string.
Attributes
- bgf
Function for background color.
- chars
Sequence of characters.
- fgf
Function for foreground color.
- Note:
Pixel tag will be set to zero.
- Source:
- CPPixel.scala
Concrete fields
Transparent non-rendering pixel. Background and foreground are unused. Note that this pixel is never rendered on any terminal. It can only be used internally for drawing on canvas, creating images, etc.
Transparent non-rendering pixel. Background and foreground are unused. Note that this pixel is never rendered on any terminal. It can only be used internally for drawing on canvas, creating images, etc.
Attributes
- Source:
- CPPixel.scala
Extensions
Extensions
Adds '&'
operator to Char
type as a sugar to create pixel without background. For example:
Adds '&'
operator to Char
type as a sugar to create pixel without background. For example:
val x = 'x'&C_BLACK
val ch = 'a'
val a = ch&C_WHITE
Attributes
- Source:
- CPPixel.scala
Adds '&&'
operator to Char
type as a sugar to create pixel with background. For example:
Adds '&&'
operator to Char
type as a sugar to create pixel with background. For example:
val x1 = 'x'&&(C_BLACK, C_WHITE)
val x2 = 'x'&&(C_BLACK, Some(C_WHITE))
val ch = 'a'
val a = ch&&(C_WHITE, Option(C_PINK))
Note that background can be either of type CPColor
or Option[CPColor]
.
Attributes
- Source:
- CPPixel.scala