Plane

trait Plane
Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def getPixel(x: Int, y: Int): Color

Concrete methods

final def clip(cx: Int, cy: Int, cw: Int, ch: Int): SurfaceView
final def contramap(f: (Int, Int) => (Int, Int)): Plane

Contramaps the positions from this plane.

Contramaps the positions from this plane.

Inverts a plane color.

Inverts a plane color.

final def map(f: Color => Color): Plane

Maps the colors from this plane.

Maps the colors from this plane.

final def toRamSurface(width: Int, height: Int): RamSurface

Converts this plane to a RAM surface, assuming (0, 0) as the top-left corner

Converts this plane to a RAM surface, assuming (0, 0) as the top-left corner

Value parameters:
height

surface height

width

surface width

final def toSurfaceView(width: Int, height: Int): SurfaceView

Converts this plane to a surface view, assuming (0, 0) as the top-left corner

Converts this plane to a surface view, assuming (0, 0) as the top-left corner

Value parameters:
height

surface view height

width

surface view width

Transposes a surface.

Transposes a surface.

final def zipWith(that: Plane, f: (Color, Color) => Color): Plane

Combines this plane with another by combining their colors with the given function.

Combines this plane with another by combining their colors with the given function.

final def zipWith(that: Surface, f: (Color, Color) => Color): SurfaceView

Combines this plane with a surface by combining their colors with the given function.

Combines this plane with a surface by combining their colors with the given function.