Packages

trait Basic extends Algebra with Debug with Layout with Path with Shape with Size with Style with Text with Transform

Source
Basic.scala
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Basic
  2. Transform
  3. Text
  4. Style
  5. Size
  6. Shape
  7. Path
  8. Layout
  9. Debug
  10. Algebra
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract type Drawing[_]

    The effect type that methods on this algebra produce.

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

    Definition Classes
    Algebra

Abstract Value Members

  1. abstract def above[A](top: Drawing[A], bottom: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
    Definition Classes
    Layout
  2. abstract def at[A](img: Drawing[A], landmark: Landmark): Drawing[A]

    Displace img by the given landmark relative to the origin, expanding the bounding box if necessary to include the relocated image.

    Displace img by the given landmark relative to the origin, expanding the bounding box if necessary to include the relocated image.

    Definition Classes
    Layout
  3. abstract def beside[A](left: Drawing[A], right: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
    Definition Classes
    Layout
  4. abstract def boundingBox[A](picture: Drawing[A]): Drawing[BoundingBox]

    Get the bounding box enclosing the picture

    Get the bounding box enclosing the picture

    Definition Classes
    Size
  5. abstract def circle(diameter: Double): Drawing[Unit]

    A circle with the given diameter.

    A circle with the given diameter. We use diamter rather than radius so circle(100) has the same size as square(100)

    Definition Classes
    Shape
  6. abstract def debug[A](picture: Drawing[A], color: Color): Drawing[A]

    Draws the bounding box and origin of the given picture on top of the picture.

    Draws the bounding box and origin of the given picture on top of the picture. The given color is used for the bounding box and origin.

    The bounding box and origin are not included in layout calculations and hence will not affect the picture's layout.

    Definition Classes
    Debug
  7. implicit abstract val drawingInstance: Applicative[Drawing]
    Definition Classes
    Algebra
  8. abstract def empty: Drawing[Unit]

    The empty shape, which is no shape at all.

    The empty shape, which is no shape at all.

    Definition Classes
    Shape
  9. abstract def fillColor[A](image: Drawing[A], fillColor: Color): Drawing[A]
    Definition Classes
    Style
  10. abstract def fillGradient[A](image: Drawing[A], fillGradient: Gradient): Drawing[A]
    Definition Classes
    Style
  11. abstract def font[A](image: Drawing[A], font: Font): Drawing[A]

    Specifies the font to use when rendering text

    Specifies the font to use when rendering text

    Definition Classes
    Text
  12. abstract def height[A](picture: Drawing[A]): Drawing[Double]

    Get the height of the bounding box enclosing the picture

    Get the height of the bounding box enclosing the picture

    Definition Classes
    Size
  13. abstract def margin[A](img: Drawing[A], top: Double, right: Double, bottom: Double, left: Double): Drawing[A]

    Expand the bounding box of img by the given amounts.

    Expand the bounding box of img by the given amounts.

    Definition Classes
    Layout
  14. abstract def noDash[A](image: Drawing[A]): Drawing[A]
    Definition Classes
    Style
  15. abstract def noFill[A](image: Drawing[A]): Drawing[A]
    Definition Classes
    Style
  16. abstract def noStroke[A](image: Drawing[A]): Drawing[A]
    Definition Classes
    Style
  17. abstract def on[A](top: Drawing[A], bottom: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]

    Place the origin of top on the origin of bottom

    Place the origin of top on the origin of bottom

    Definition Classes
    Layout
  18. abstract def originAt[A](img: Drawing[A], landmark: Landmark): Drawing[A]

    Place the origin of img at the given landmark, expanding the bounding box if necessary to include the relocated origin.

    Place the origin of img at the given landmark, expanding the bounding box if necessary to include the relocated origin.

    Definition Classes
    Layout
  19. abstract def path(path: OpenPath): Drawing[Unit]
    Definition Classes
    Path
  20. abstract def path(path: ClosedPath): Drawing[Unit]
    Definition Classes
    Path
  21. abstract def rectangle(width: Double, height: Double): Drawing[Unit]

    A rectangle with the given width and height.

    A rectangle with the given width and height.

    Definition Classes
    Shape
  22. abstract def size[A](picture: Drawing[A]): Drawing[(Double, Double)]

    Get the width and height of the bounding box enclosing the picture

    Get the width and height of the bounding box enclosing the picture

    Definition Classes
    Size
  23. abstract def square(width: Double): Drawing[Unit]

    A square with the given side length.

    A square with the given side length.

    Definition Classes
    Shape
  24. abstract def strokeCap[A](image: Drawing[A], strokeCap: Cap): Drawing[A]
    Definition Classes
    Style
  25. abstract def strokeColor[A](image: Drawing[A], strokeColor: Color): Drawing[A]
    Definition Classes
    Style
  26. abstract def strokeDash[A](image: Drawing[A], pattern: Iterable[Double]): Drawing[A]

    Specify the stroke dash pattern.

    Specify the stroke dash pattern. The pattern gives the length, in local coordinates, of opaque and transparent sections. The first element is the length of an opaque section, the second of a transparent section, and so on.

    Definition Classes
    Style
  27. abstract def strokeJoin[A](image: Drawing[A], strokeJoin: Join): Drawing[A]
    Definition Classes
    Style
  28. abstract def strokeWidth[A](image: Drawing[A], strokeWidth: Double): Drawing[A]
    Definition Classes
    Style
  29. abstract def text(text: String): Drawing[Unit]

    Render the given String

    Render the given String

    Definition Classes
    Text
  30. abstract def transform[A](img: Drawing[A], tx: Transform): Drawing[A]
    Definition Classes
    Transform
  31. abstract def triangle(width: Double, height: Double): Drawing[Unit]

    An isoceles triangle with the given width and height.

    An isoceles triangle with the given width and height.

    Definition Classes
    Shape
  32. abstract def width[A](picture: Drawing[A]): Drawing[Double]

    Get the width of the bounding box enclosing the picture

    Get the width of the bounding box enclosing the picture

    Definition Classes
    Size

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def at[A](img: Drawing[A], offset: Point): Drawing[A]
    Definition Classes
    Layout
  6. def at[A](img: Drawing[A], offset: Vec): Drawing[A]
    Definition Classes
    Layout
  7. def at[A](img: Drawing[A], r: Double, a: Angle): Drawing[A]
    Definition Classes
    Layout
  8. def at[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
    Definition Classes
    Layout
  9. def below[A](bottom: Drawing[A], top: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
    Definition Classes
    Layout
  10. def catmulRom(points: Seq[Point], tension: Double = 0.5): Drawing[Unit]
    Definition Classes
    Path
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def equilateralTriangle(width: Double): Drawing[Unit]

    Create an equilateral triangle with the given side length.

    Create an equilateral triangle with the given side length.

    Definition Classes
    Path
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def horizontalReflection[A](img: Drawing[A]): Drawing[A]
    Definition Classes
    Transform
  19. def interpolatingSpline(points: Seq[Point]): Drawing[Unit]
    Definition Classes
    Path
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def margin[A](img: Drawing[A], width: Double): Drawing[A]
    Definition Classes
    Layout
  22. def margin[A](img: Drawing[A], width: Double, height: Double): Drawing[A]
    Definition Classes
    Layout
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def originAt[A](img: Drawing[A], offset: Point): Drawing[A]
    Definition Classes
    Layout
  27. def originAt[A](img: Drawing[A], offset: Vec): Drawing[A]
    Definition Classes
    Layout
  28. def originAt[A](img: Drawing[A], r: Double, a: Angle): Drawing[A]
    Definition Classes
    Layout
  29. def originAt[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
    Definition Classes
    Layout
  30. def regularPolygon(sides: Int, radius: Double): Drawing[Unit]
    Definition Classes
    Path
  31. def rotate[A](img: Drawing[A], angle: Angle): Drawing[A]
    Definition Classes
    Transform
  32. def roundedRectangle(width: Double, height: Double, radius: Double): Drawing[Unit]
    Definition Classes
    Path
  33. def scale[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
    Definition Classes
    Transform
  34. def star(points: Int, outerRadius: Double, innerRadius: Double): Drawing[Unit]
    Definition Classes
    Path
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. def translate[A](img: Drawing[A], vec: Vec): Drawing[A]
    Definition Classes
    Transform
  38. def translate[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
    Definition Classes
    Transform
  39. def under[A](bottom: Drawing[A], top: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
    Definition Classes
    Layout
  40. def verticalReflection[A](img: Drawing[A]): Drawing[A]
    Definition Classes
    Transform
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Transform

Inherited from Text

Inherited from Style

Inherited from Size

Inherited from Shape

Inherited from Path

Inherited from Layout

Inherited from Debug

Inherited from Algebra

Inherited from AnyRef

Inherited from Any

Ungrouped