Basic

trait Basic extends Algebra with Debug with Layout with Path with Shape with Size with Style with Text with Transform
trait Transform
trait Text
trait Style
trait Size
trait Shape
trait Path
trait Layout
trait Debug
trait Algebra
class Object
trait Matchable
class Any

Type members

Inherited 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.

Inherited from:
Algebra
Source:
Algebra.scala

Value members

Inherited methods

def above[A](top: Drawing[A], bottom: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def at[A](img: Drawing[A], offset: Point): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def at[A](img: Drawing[A], offset: Vec): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def at[A](img: Drawing[A], r: Double, a: Angle): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def at[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
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.

Inherited from:
Layout
Source:
Layout.scala
def below[A](bottom: Drawing[A], top: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def beside[A](left: Drawing[A], right: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def boundingBox[A](picture: Drawing[A]): Drawing[BoundingBox]

Get the bounding box enclosing the picture

Get the bounding box enclosing the picture

Inherited from:
Size
Source:
Size.scala
def catmulRom(points: Seq[Point], tension: Double): Drawing[Unit]
Inherited from:
Path
Source:
Path.scala
def circle(diameter: Double): Drawing[Unit]

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

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

Inherited from:
Shape
Source:
Shape.scala
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. The given color is used for the bounding box and origin.

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.

Inherited from:
Debug
Source:
Debug.scala

The empty shape, which is no shape at all.

The empty shape, which is no shape at all.

Inherited from:
Shape
Source:
Shape.scala

Create an equilateral triangle with the given side length.

Create an equilateral triangle with the given side length.

Inherited from:
Path
Source:
Path.scala
def fillColor[A](image: Drawing[A], fillColor: Color): Drawing[A]
Inherited from:
Style
Source:
Style.scala
def fillGradient[A](image: Drawing[A], fillGradient: Gradient): Drawing[A]
Inherited from:
Style
Source:
Style.scala
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

Inherited from:
Text
Source:
Text.scala
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

Inherited from:
Size
Source:
Size.scala
Inherited from:
Transform
Source:
Transform.scala
Inherited from:
Path
Source:
Path.scala
def margin[A](img: Drawing[A], width: Double): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def margin[A](img: Drawing[A], width: Double, height: Double): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
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.

Inherited from:
Layout
Source:
Layout.scala
def noDash[A](image: Drawing[A]): Drawing[A]
Inherited from:
Style
Source:
Style.scala
def noFill[A](image: Drawing[A]): Drawing[A]
Inherited from:
Style
Source:
Style.scala
def noStroke[A](image: Drawing[A]): Drawing[A]
Inherited from:
Style
Source:
Style.scala
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

Inherited from:
Layout
Source:
Layout.scala
def originAt[A](img: Drawing[A], offset: Point): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def originAt[A](img: Drawing[A], offset: Vec): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def originAt[A](img: Drawing[A], r: Double, a: Angle): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def originAt[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
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.

Inherited from:
Layout
Source:
Layout.scala
def path(path: OpenPath): Drawing[Unit]
Inherited from:
Path
Source:
Path.scala
Inherited from:
Path
Source:
Path.scala
def rectangle(width: Double, height: Double): Drawing[Unit]

A rectangle with the given width and height.

A rectangle with the given width and height.

Inherited from:
Shape
Source:
Shape.scala
def regularPolygon(sides: Int, radius: Double): Drawing[Unit]
Inherited from:
Path
Source:
Path.scala
def rotate[A](img: Drawing[A], angle: Angle): Drawing[A]
Inherited from:
Transform
Source:
Transform.scala
def roundedRectangle(width: Double, height: Double, radius: Double): Drawing[Unit]
Inherited from:
Path
Source:
Path.scala
def scale[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
Inherited from:
Transform
Source:
Transform.scala
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

Inherited from:
Size
Source:
Size.scala
def square(width: Double): Drawing[Unit]

A square with the given side length.

A square with the given side length.

Inherited from:
Shape
Source:
Shape.scala
def star(points: Int, outerRadius: Double, innerRadius: Double): Drawing[Unit]
Inherited from:
Path
Source:
Path.scala
def strokeCap[A](image: Drawing[A], strokeCap: Cap): Drawing[A]
Inherited from:
Style
Source:
Style.scala
def strokeColor[A](image: Drawing[A], strokeColor: Color): Drawing[A]
Inherited from:
Style
Source:
Style.scala
def strokeDash[A](image: Drawing[A], pattern: Iterable[Double]): Drawing[A]

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.

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.

Inherited from:
Style
Source:
Style.scala
def strokeJoin[A](image: Drawing[A], strokeJoin: Join): Drawing[A]
Inherited from:
Style
Source:
Style.scala
def strokeWidth[A](image: Drawing[A], strokeWidth: Double): Drawing[A]
Inherited from:
Style
Source:
Style.scala
def text(text: String): Drawing[Unit]

Render the given String

Render the given String

Inherited from:
Text
Source:
Text.scala
def transform[A](img: Drawing[A], tx: Transform): Drawing[A]
Inherited from:
Transform
Source:
Transform.scala
def translate[A](img: Drawing[A], vec: Vec): Drawing[A]
Inherited from:
Transform
Source:
Transform.scala
def translate[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
Inherited from:
Transform
Source:
Transform.scala
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.

Inherited from:
Shape
Source:
Shape.scala
def under[A](bottom: Drawing[A], top: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def verticalReflection[A](img: Drawing[A]): Drawing[A]
Inherited from:
Transform
Source:
Transform.scala
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

Inherited from:
Size
Source:
Size.scala

Implicits

Inherited implicits

Inherited from:
Algebra
Source:
Algebra.scala