Packages

p

doodle

algebra

package algebra

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Package Members

  1. package generic

Type Members

  1. trait Algebra extends AnyRef

    Base type for algebras that produce results in some effect type Drawing.

    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:

    scala def usingAlgebra(algebra: Algebra): algebra.Drawing = ???

    All Drawing types are required to implement Applicative

  2. trait BaseConstructor extends AnyRef

    Base module for constructors

    Base module for constructors

    The intention is to assist with type inference for constructors by defining constructors that are parameterized by the Algebra and Drawing types, and instantiating those types within each backend.

    Algebras that define constructors should also define a constructor mixin. See e.g. Shape for an example.

  3. trait Bitmap extends Algebra
  4. trait BitmapConstructor extends AnyRef

    Constructors for Bitmap algebra

  5. trait Blend extends Algebra

    Algebra describing color blending modes.

  6. trait Debug extends Algebra
  7. trait FromBufferedImage extends Algebra

    Algebra for converting a BufferedImage to a picture

  8. trait FromBufferedImageConstructor extends AnyRef

    Constructor for FromBufferedImage algebra

  9. trait FromGifBase64 extends Algebra

    Algebra indicating a Picture can be created from a base 64 encoded bitmap in Gif format.

  10. trait FromGifBase64Constructor extends AnyRef

    Constructor for FromGifBase64 algebra

  11. trait FromJpgBase64 extends Algebra

    Algebra indicating a Picture can be created from a base 64 encoded bitmap in JPG format.

  12. trait FromJpgBase64Constructor extends AnyRef

    Constructor for FromJpgBase64 algebra

  13. trait FromPngBase64 extends Algebra

    Algebra indicating a Picture can be created from a base 64 encoded bitmap in PNG format.

  14. trait FromPngBase64Constructor extends AnyRef

    Constructor for FromPngBase64 algebra

  15. trait Layout extends Algebra
  16. trait Path extends Algebra
  17. trait PathConstructor extends AnyRef

    Constructors for Path algebra

  18. trait Picture[-Alg <: Algebra, A] extends AnyRef

    Represents a picture, which is a function from a tagless final algebra to some type F that represents drawing a picture with result A.

    Represents a picture, which is a function from a tagless final algebra to some type F that represents drawing a picture with result A. Has a monad instance if F does.

  19. trait Shape extends Algebra

    Higher level shape primitives.

    Higher level shape primitives. These draw common geometric shapes with the center of the shape the origin of the bounding box.

  20. trait ShapeConstructor extends AnyRef

    Constructors for Shape algebra

  21. trait Size extends Algebra

    Get information about the size of the bounding box enclosing an picture.

  22. trait Style extends Algebra

    Apply styling to a image.

  23. trait Text extends Algebra

    Algebra for creating and styling text.

  24. trait TextConstructor extends AnyRef

    Constructors for Text algebra

  25. trait ToPicture[Input, Alg <: Algebra] extends AnyRef

    Represents converting from the Input type to a Picture, and depends on the support of some Algebra to actually do the conversion.

    Represents converting from the Input type to a Picture, and depends on the support of some Algebra to actually do the conversion. This can be used to represent, for example, creating a picture from a bitmap in a base64 encoded string.

  26. trait Transform extends Algebra

Value Members

  1. object Algebra
  2. object Picture

Ungrouped