org.cosplay.CPArrayImage
See theCPArrayImage companion object
An image based on two-dimensional pixel array.
This is the primary tool for creating in-code images. This class has number of constructors and companion utility methods to aid in creating in-code images in variety of ways. Here's a typical example of using this class to create an in-code image. Note the use of companion object function prepSeq():
object CPAlienImage extends CPArrayImage(
prepSeq("""
| . .
| \/
| (@@)
| g/\_)(_/\e
|g/\(=--=)/\e
| //\\
| _| |_
"""),
(ch, _, _) => ch&C_LIME
)
Attributes
- data
Image data. Note that given data array should not have
null
values.- origin
The origin of the image like file path or URL.
- Companion:
- object
- Source:
- CPArrayImage.scala
- Graph
- Supertypes
- Known subtypes
- object CPAardvarkImage.typeobject CPAlienImage.typeobject CPAlienPlanetImage.typeobject CPAmigaImage.typeobject CPArrowImage.typeobject CPAstronaut1Image.typeobject CPAstronaut2Image.typeobject CPAtari2080STImage.typeobject CPBananaImage.typeobject CPBatImage.typeobject CPBearImage.typeobject CPBedImage.typeobject CPBeetleImage.typeobject CPBrickNImage.typeobject CPBrickWImage.typeobject CPCactusImage.typeobject CPCalculatorImage.typeobject CPCapsuleImage.typeobject CPCarImage.typeobject CPCastleImage.typeobject CPCloudImage.typeobject CPCrownImage.typeobject CPCubesImage.typeobject CPDogImage.typeobject CPDolphinImage.typeobject CPFlamingoImage.typeobject CPGameBoyImage.typeobject CPGingerbreadImage.typeobject CPGlobeImage.typeobject CPGrimReaperImage.typeobject CPHelicopterImage.typeobject CPIceCreamImage.typeobject CPKnifeImage.typeobject CPLanderImage.typeobject CPMoon1Image.typeobject CPMoon2Image.typeobject CPMotorcycleImage.typeobject CPMouseImage.typeobject CPOceanLinerImage.typeobject CPPlaneImage.typeobject CPRocket1Image.typeobject CPRocket2Image.typeobject CPSatellite1Image.typeobject CPSatellite2Image.typeobject CPSatellite3Image.typeobject CPSaturnImage.typeobject CPShieldImage.typeobject CPSkullImage.typeobject CPSpaceShipImage.typeobject CPSunGlassesImage.typeobject CPSwordImage.typeobject CPTelescopeImage.typeobject CPTntImage.typeobject CPTornadoImage.typeobject CPTruckImage.typeobject CPUmbrellaImage.typeobject CPBikingAniImage.typeobject CPBirdAniImage.typeobject CPCubeAniImage.typeobject CPCurveAniImage.typeobject CPDancerAniImage.typeobject CPHandAniImage.typeobject CPMacarena1AniImage.typeobject CPMacarena2AniImage.typeobject CPMacarena3AniImage.typeobject CPMacarena4AniImage.typeobject CPMacarena5AniImage.typeobject CPPointManAniImage.typeobject CPRunnerAniImage.typeobject CPSomersaultAniImage.typeobject CPSpinningGlobeAniImage.typeobject CPCircle1aImage.typeobject CPCircle1bImage.typeobject CPCircle1cImage.typeobject CPCircle2aImage.typeobject CPCircle2bImage.typeobject CPCircle3Image.typeobject CPCircle4Image.typeobject CPCircle5Image.typeobject CPCircle6Image.typeobject CPCircle9Image.type