Basic

doodle.language.Basic

Attributes

Source
Basic.scala
Graph
Supertypes
trait Transform
trait Text
trait Style
trait Size
trait Shape
trait Path
trait Layout
trait Debug
trait Algebra
class Object
trait Matchable
class Any
Show all
Known subtypes
class Algebra
trait BaseAlgebra
class JvmAlgebra

Members list

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.

Attributes

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]

Attributes

Inherited from:
Layout
Source
Layout.scala
def at[A](img: Drawing[A], offset: Point): Drawing[A]

Attributes

Inherited from:
Layout
Source
Layout.scala
def at[A](img: Drawing[A], offset: Vec): Drawing[A]

Attributes

Inherited from:
Layout
Source
Layout.scala
def at[A](img: Drawing[A], r: Double, a: Angle): Drawing[A]

Attributes

Inherited from:
Layout
Source
Layout.scala
def at[A](img: Drawing[A], x: Double, y: Double): Drawing[A]

Attributes

Inherited from:
Layout
Source
Layout.scala

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.

Attributes

Inherited from:
Layout
Source
Layout.scala
def below[A](bottom: Drawing[A], top: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]

Attributes

Inherited from:
Layout
Source
Layout.scala
def beside[A](left: Drawing[A], right: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]

Attributes

Inherited from:
Layout
Source
Layout.scala

Get the bounding box enclosing the picture

Get the bounding box enclosing the picture

Attributes

Inherited from:
Size
Source
Size.scala

Attributes

Inherited from:
Path
Source
Path.scala

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)

Attributes

Inherited from:
Shape
Source
Shape.scala

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.

Attributes

Inherited from:
Debug
Source
Debug.scala

The empty shape, which is no shape at all.

The empty shape, which is no shape at all.

Attributes

Inherited from:
Shape
Source
Shape.scala

Create an equilateral triangle with the given side length.

Create an equilateral triangle with the given side length.

Attributes

Inherited from:
Path
Source
Path.scala

Attributes

Inherited from:
Style
Source
Style.scala

Attributes

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

Attributes

Inherited from:
Text
Source
Text.scala

Get the height of the bounding box enclosing the picture

Get the height of the bounding box enclosing the picture

Attributes

Inherited from:
Size
Source
Size.scala

Attributes

Inherited from:
Transform
Source
Transform.scala

Attributes

Inherited from:
Path
Source
Path.scala

Attributes

Inherited from:
Layout
Source
Layout.scala

Attributes

Inherited from:
Layout
Source
Layout.scala

Expand the bounding box of img by the given amounts.

Expand the bounding box of img by the given amounts.

Attributes

Inherited from:
Layout
Source
Layout.scala
def noDash[A](image: Drawing[A]): Drawing[A]

Attributes

Inherited from:
Style
Source
Style.scala
def noFill[A](image: Drawing[A]): Drawing[A]

Attributes

Inherited from:
Style
Source
Style.scala

Attributes

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

Attributes

Inherited from:
Layout
Source
Layout.scala

Attributes

Inherited from:
Layout
Source
Layout.scala

Attributes

Inherited from:
Layout
Source
Layout.scala
def originAt[A](img: Drawing[A], r: Double, a: Angle): Drawing[A]

Attributes

Inherited from:
Layout
Source
Layout.scala

Attributes

Inherited from:
Layout
Source
Layout.scala

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.

Attributes

Inherited from:
Layout
Source
Layout.scala

Attributes

Inherited from:
Path
Source
Path.scala

Attributes

Inherited from:
Path
Source
Path.scala

A rectangle with the given width and height.

A rectangle with the given width and height.

Attributes

Inherited from:
Shape
Source
Shape.scala

Attributes

Inherited from:
Path
Source
Path.scala

Attributes

Inherited from:
Transform
Source
Transform.scala

Attributes

Inherited from:
Path
Source
Path.scala
def scale[A](img: Drawing[A], x: Double, y: Double): Drawing[A]

Attributes

Inherited from:
Transform
Source
Transform.scala

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

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

Attributes

Inherited from:
Size
Source
Size.scala

A square with the given side length.

A square with the given side length.

Attributes

Inherited from:
Shape
Source
Shape.scala

Attributes

Inherited from:
Path
Source
Path.scala

Attributes

Inherited from:
Style
Source
Style.scala

Attributes

Inherited from:
Style
Source
Style.scala

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.

Attributes

Inherited from:
Style
Source
Style.scala

Attributes

Inherited from:
Style
Source
Style.scala

Attributes

Inherited from:
Style
Source
Style.scala

Render the given String

Render the given String

Attributes

Inherited from:
Text
Source
Text.scala

Attributes

Inherited from:
Transform
Source
Transform.scala
def translate[A](img: Drawing[A], vec: Vec): Drawing[A]

Attributes

Inherited from:
Transform
Source
Transform.scala

Attributes

Inherited from:
Transform
Source
Transform.scala

An isoceles triangle with the given width and height.

An isoceles triangle with the given width and height.

Attributes

Inherited from:
Shape
Source
Shape.scala
def under[A](bottom: Drawing[A], top: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]

Attributes

Inherited from:
Layout
Source
Layout.scala

Attributes

Inherited from:
Transform
Source
Transform.scala

Get the width of the bounding box enclosing the picture

Get the width of the bounding box enclosing the picture

Attributes

Inherited from:
Size
Source
Size.scala

Implicits

Inherited implicits

implicit val drawingInstance: Monad[Drawing]

Attributes

Inherited from:
Algebra
Source
Algebra.scala