trait Algebra
Base type for algebras that produce results in some effect type Drawing
.
Users of algebras should use dependent method types (or dependent function
types in Scala 3) to return the Drawing
type of the method they are
passed:
def usingAlgebra(algebra: Algebra): algebra.Drawing = ???
All Drawing
types are required to implement Applicative
- Companion:
- object
- Source:
- Algebra.scala
trait Bitmap
trait ReifiedBitmap
class Algebra
trait Blend
trait Debug
trait GenericDebug[G]
trait Basic
trait FromBufferedImage
trait Java2dFromBufferedImage
trait FromGifBase64
trait Java2dFromBase64
trait FromJpgBase64
trait FromPngBase64
trait Layout
trait GenericLayout[G]
trait Path
trait GenericPath[G]
trait ReifiedPath
trait Shape
trait GenericShape[G]
trait ReifiedShape
trait Size
trait GenericSize[G]
trait Style
trait GenericStyle[G]
trait Text
trait GenericText[G]
trait ReifiedText
trait Transform
trait GenericTransform[G]
trait MouseOver
Type members
Types
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.
- Source:
- Algebra.scala