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.
Value parameters
- char
-
Pixel character.
- fg
-
Pixel foreground.
Attributes
- Note
-
Pixel tag will be set to zero.
- Source
- CPPixel.scala
Creates new pixel without background.
Creates new pixel without background.
Value parameters
- char
-
Pixel character.
- fg
-
Pixel foreground.
- tag
-
Pixel tag.
Attributes
- Source
- CPPixel.scala
Creates new pixel.
Creates new pixel.
Value parameters
- bg
-
Pixel background.
- char
-
Pixel character.
- fg
-
Pixel foreground.
Attributes
- Note
-
Pixel tag will be set to zero.
- Source
- CPPixel.scala
Creates new pixel.
Creates new pixel.
Value parameters
- bg
-
Optional pixel background.
- char
-
Pixel character.
- fg
-
Pixel foreground.
Attributes
- Note
-
Pixel tag will be set to zero.
- Source
- CPPixel.scala
Creates new pixel.
Creates new pixel.
Value parameters
- bg
-
Pixel background.
- char
-
Pixel character.
- fg
-
Pixel foreground.
- tag
-
Pixel tag.
Attributes
- Source
- CPPixel.scala
Creates new pixel.
Creates new pixel.
Value parameters
- bg
-
Optional pixel background.
- char
-
Pixel character.
- fg
-
Pixel foreground.
- tag
-
Pixel tag.
Attributes
- 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.
Value parameters
- bg
-
Background color.
- fg
-
Foreground color.
- first
-
First character in the range.
- last
-
Last character in the range.
Attributes
- 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.
Value parameters
- bgf
-
Function for background color.
- fgf
-
Function for foreground color.
- first
-
First character in the range.
- last
-
Last character in the range.
Attributes
- 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.
Value parameters
- bg
-
Background color.
- chars
-
Sequence of characters.
- fg
-
Foreground color.
Attributes
- 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.
Value parameters
- bgf
-
Function for background color.
- chars
-
Sequence of characters.
- fgf
-
Function for foreground color.
Attributes
- 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, C_WHITE.?)
val ch = 'a'
val a = ch&&(C_WHITE, C_PINK.?)
Note that background can be either of type CPColor
or Option[CPColor]
.
Attributes
- Source
- CPPixel.scala