Companion object with utility functions.
Attributes
- Companion:
- class
- Source:
- CPImage.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- CPImage.type
Members list
Value members
Concrete methods
Creates new image by stacking given images horizontally, starting with the 1st image, then stitching the 2nd image to the right of the 1st, etc.
Creates new image by stacking given images horizontally, starting with the 1st image, then stitching the 2nd image to the right of the 1st, etc.
Attributes
- imgs
Non-empty set of images to stitch horizontally.
- Source:
- CPImage.scala
Loads image auto-detecting its format based on the file path extension. The following extensions are recognized:
Loads image auto-detecting its format based on the file path extension. The following extensions are recognized:
*.csv
will use REXPaint CSV format.*.xp
will use REXPaint XP format.*.txt
will use text format.
Attributes
- path
Local filesystem file path.
- skin
Skinning function. The function takes an existing pixel, its X and Y coordinate and return a new pixel. Default value is the function that returns the same pixel.
- Source:
- CPImage.scala
Loads image using REXPaint CSV format.
Loads image using REXPaint CSV format.
Attributes
- skin
Skinning function. The function takes an existing pixel, its X and Y coordinate and return a new pixel. Default value is a function that return the same pixel.
- src
Local filesystem path, resources file or URL.
- Source:
- CPImage.scala
Loads image using REXPaint XP format.
Loads image using REXPaint XP format.
Attributes
- skin
Skinning function. The function takes an existing pixel, its X and Y coordinate and return a new pixel. Default value is the function that returns the same pixel.
- src
Local filesystem path, resources file or URL.
- Note:
Implementation is based on https://github.com/biscon/xpreader/blob/master/src/REXReader.java
- Source:
- CPImage.scala
Loads image using *.txt
format.
Loads image using *.txt
format.
Attributes
- skin
Skinning function. The function takes an existing pixel, its X and Y coordinate and return a new pixel. Default value is the function that returns the same pixel.
- src
Local filesystem path, resources file or URL.
- Source:
- CPImage.scala
Previews given sequence of image as animation.
Previews given sequence of image as animation.
Attributes
- bg
Optional background pixel for the terminal. Default value is
CPPixel('.', C_GRAY2, C_GRAY1)
- emuTerm
Whether or not to use terminal emulation. Default value is
true
.- fps
How many frame per second to show.
- imgs
Sequence of images to be used as key frames for the animation.
- Source:
- CPImage.scala
Previews given image.
Previews given image.
Attributes
- bg
Optional background pixel for the terminal. Default value is
CPPixel('.', C_GRAY2, C_GRAY1)
- emuTerm
Whether or not to use terminal emulation. Default value is
true
.- img
Image to preview.
- Source:
- CPImage.scala
Creates new image by stacking given images vertically, starting with the 1st image, then stitching the 2nd image underneath the 1st, etc.
Creates new image by stacking given images vertically, starting with the 1st image, then stitching the 2nd image underneath the 1st, etc.
Attributes
- imgs
Non-empty set of images to stitch vertically.
- Source:
- CPImage.scala