Filter

doodle.algebra.Filter
See theFilter companion object
trait Filter extends Algebra

Attributes

Companion
object
Source
Filter.scala
Graph
Supertypes
trait Algebra
class Object
trait Matchable
class Any

Members list

Type members

Inherited and Abstract types

type Drawing[_]

The effect type that methods on this algebra produce. Represents an effect that, when run, will draw something and produce a value.

The effect type that methods on this algebra produce. Represents an effect that, when run, will draw something and produce a value.

Attributes

Inherited from:
Algebra
Source
Algebra.scala

Value members

Abstract methods

def boxBlur[A](picture: Drawing[A], radius: Int): Drawing[A]

Attributes

Source
Filter.scala
def convolveMatrix[A](picture: Drawing[A], kernel: Kernel, divisor: Option[Double], bias: Double): Drawing[A]

Apply a custom convolution kernel

Apply a custom convolution kernel

Value parameters

bias

Optional bias to add to each pixel

divisor

Optional divisor for the result (defaults to sum of kernel)

kernel

The convolution kernel

Attributes

Source
Filter.scala
def detectEdges[A](picture: Drawing[A]): Drawing[A]

Attributes

Source
Filter.scala
def dropShadow[A](picture: Drawing[A], offsetX: Double, offsetY: Double, blur: Double, color: Color): Drawing[A]

Attributes

Source
Filter.scala
def emboss[A](picture: Drawing[A]): Drawing[A]

Attributes

Source
Filter.scala
def gaussianBlur[A](picture: Drawing[A], stdDeviation: Double): Drawing[A]

Attributes

Source
Filter.scala
def sharpen[A](picture: Drawing[A], amount: Double): Drawing[A]

Attributes

Source
Filter.scala

Implicits

Inherited and Abstract implicits

implicit val drawingInstance: Monad[Drawing]

Attributes

Inherited from:
Algebra
Source
Algebra.scala