trait Basic extends Algebra with Debug with Layout with Path with Shape with Size with Style with Text with Transform
- Alphabetic
- By Inheritance
- Basic
- Transform
- Text
- Style
- Size
- Shape
- Path
- Layout
- Debug
- Algebra
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
Abstract Value Members
- abstract def above[A](top: Drawing[A], bottom: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
- Definition Classes
- Layout
- 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
- abstract def beside[A](left: Drawing[A], right: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
- Definition Classes
- Layout
- 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
- 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
- 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
- implicit abstract val drawingInstance: Applicative[Drawing]
- Definition Classes
- Algebra
- 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
- abstract def fillColor[A](image: Drawing[A], fillColor: Color): Drawing[A]
- Definition Classes
- Style
- abstract def fillGradient[A](image: Drawing[A], fillGradient: Gradient): Drawing[A]
- Definition Classes
- Style
- 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
- 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
- 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
- abstract def noDash[A](image: Drawing[A]): Drawing[A]
- Definition Classes
- Style
- abstract def noFill[A](image: Drawing[A]): Drawing[A]
- Definition Classes
- Style
- abstract def noStroke[A](image: Drawing[A]): Drawing[A]
- Definition Classes
- Style
- 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
- 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
- abstract def path(path: OpenPath): Drawing[Unit]
- Definition Classes
- Path
- abstract def path(path: ClosedPath): Drawing[Unit]
- Definition Classes
- Path
- 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
- 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
- abstract def square(width: Double): Drawing[Unit]
A square with the given side length.
A square with the given side length.
- Definition Classes
- Shape
- abstract def strokeCap[A](image: Drawing[A], strokeCap: Cap): Drawing[A]
- Definition Classes
- Style
- abstract def strokeColor[A](image: Drawing[A], strokeColor: Color): Drawing[A]
- Definition Classes
- Style
- 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
- abstract def strokeJoin[A](image: Drawing[A], strokeJoin: Join): Drawing[A]
- Definition Classes
- Style
- abstract def strokeWidth[A](image: Drawing[A], strokeWidth: Double): Drawing[A]
- Definition Classes
- Style
- abstract def text(text: String): Drawing[Unit]
Render the given String
Render the given String
- Definition Classes
- Text
- abstract def transform[A](img: Drawing[A], tx: Transform): Drawing[A]
- Definition Classes
- Transform
- 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
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def at[A](img: Drawing[A], offset: Point): Drawing[A]
- Definition Classes
- Layout
- def at[A](img: Drawing[A], offset: Vec): Drawing[A]
- Definition Classes
- Layout
- def at[A](img: Drawing[A], r: Double, a: Angle): Drawing[A]
- Definition Classes
- Layout
- def at[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
- Definition Classes
- Layout
- def below[A](bottom: Drawing[A], top: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
- Definition Classes
- Layout
- def catmulRom(points: Seq[Point], tension: Double = 0.5): Drawing[Unit]
- Definition Classes
- Path
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def horizontalReflection[A](img: Drawing[A]): Drawing[A]
- Definition Classes
- Transform
- def interpolatingSpline(points: Seq[Point]): Drawing[Unit]
- Definition Classes
- Path
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def margin[A](img: Drawing[A], width: Double): Drawing[A]
- Definition Classes
- Layout
- def margin[A](img: Drawing[A], width: Double, height: Double): Drawing[A]
- Definition Classes
- Layout
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def originAt[A](img: Drawing[A], offset: Point): Drawing[A]
- Definition Classes
- Layout
- def originAt[A](img: Drawing[A], offset: Vec): Drawing[A]
- Definition Classes
- Layout
- def originAt[A](img: Drawing[A], r: Double, a: Angle): Drawing[A]
- Definition Classes
- Layout
- def originAt[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
- Definition Classes
- Layout
- def regularPolygon(sides: Int, radius: Double): Drawing[Unit]
- Definition Classes
- Path
- def rotate[A](img: Drawing[A], angle: Angle): Drawing[A]
- Definition Classes
- Transform
- def roundedRectangle(width: Double, height: Double, radius: Double): Drawing[Unit]
- Definition Classes
- Path
- def scale[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
- Definition Classes
- Transform
- def star(points: Int, outerRadius: Double, innerRadius: Double): Drawing[Unit]
- Definition Classes
- Path
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def translate[A](img: Drawing[A], vec: Vec): Drawing[A]
- Definition Classes
- Transform
- def translate[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
- Definition Classes
- Transform
- def under[A](bottom: Drawing[A], top: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
- Definition Classes
- Layout
- def verticalReflection[A](img: Drawing[A]): Drawing[A]
- Definition Classes
- Transform
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()