# Basic

trait Basic[F[_]] extends Algebra[F] with Debug[F] with Layout[F] with Path[F] with Shape[F] with Size[F] with Style[F] with Transform[F]
Companion
object
trait Transform[F]
trait Style[F]
trait Size[F]
trait Shape[F]
trait Path[F]
trait Layout[F]
trait Debug[F]
trait Algebra[F]
class Object
trait Matchable
class Any
class Algebra

## Value members

### Inherited methods

def above[A](top: F[A], bottom: F[A])(implicit s: Semigroup[A]): F[A]
Inherited from
Layout
def at[A](img: F[A], offset: Point): F[A]
Inherited from
Layout
def at[A](img: F[A], offset: Vec): F[A]
Inherited from
Layout
def at[A](img: F[A], r: Double, a: Angle): F[A]
Inherited from
Layout
def at[A](img: F[A], x: Double, y: Double): F[A]
Inherited from
Layout
def at[A](img: F[A], landmark: Landmark): F[A]
Inherited from
Layout
def below[A](bottom: F[A], top: F[A])(implicit s: Semigroup[A]): F[A]
Inherited from
Layout
def beside[A](left: F[A], right: F[A])(implicit s: Semigroup[A]): F[A]
Inherited from
Layout
def boundingBox[A](picture: F[A]): F[BoundingBox]

Get the bounding box enclosing the picture

Get the bounding box enclosing the picture

Inherited from
Size
def catmulRom(points: Seq[Point], tension: Double): F[Unit]
Inherited from
Path
def circle(diameter: Double): F[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
def debug[A](picture: F[A], color: Color): F[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
def empty: F[Unit]

The empty shape, which is no shape at all.

The empty shape, which is no shape at all.

Inherited from
Shape
def equilateralTriangle(width: Double): F[Unit]

Create an equilateral triangle with the given side length.

Create an equilateral triangle with the given side length.

Inherited from
Path
def fillColor[A](image: F[A], fillColor: Color): F[A]
Inherited from
Style
Inherited from
Style
def height[A](picture: F[A]): F[Double]

Get the height of the bounding box enclosing the picture

Get the height of the bounding box enclosing the picture

Inherited from
Size
def horizontalReflection[A](img: F[A]): F[A]
Inherited from
Transform
def interpolatingSpline(points: Seq[Point]): F[Unit]
Inherited from
Path
def margin[A](img: F[A], width: Double): F[A]
Inherited from
Layout
def margin[A](img: F[A], width: Double, height: Double): F[A]
Inherited from
Layout
def margin[A](img: F[A], top: Double, right: Double, bottom: Double, left: Double): F[A]
Inherited from
Layout
def noDash[A](image: F[A]): F[A]
Inherited from
Style
def noFill[A](image: F[A]): F[A]
Inherited from
Style
def noStroke[A](image: F[A]): F[A]
Inherited from
Style
def on[A](top: F[A], bottom: F[A])(implicit s: Semigroup[A]): F[A]
Inherited from
Layout
def path(path: OpenPath): F[Unit]
Inherited from
Path
def path(path: ClosedPath): F[Unit]
Inherited from
Path
def rectangle(width: Double, height: Double): F[Unit]

A rectangle with the given width and height.

A rectangle with the given width and height.

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

A square with the given side length.

A square with the given side length.

Inherited from
Shape
def star(points: Int, outerRadius: Double, innerRadius: Double): F[Unit]
Inherited from
Path
def strokeCap[A](image: F[A], strokeCap: Cap): F[A]
Inherited from
Style
def strokeColor[A](image: F[A], strokeColor: Color): F[A]
Inherited from
Style
def strokeDash[A](image: F[A], pattern: Iterable[Double]): F[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
def strokeJoin[A](image: F[A], strokeJoin: Join): F[A]
Inherited from
Style
def strokeWidth[A](image: F[A], strokeWidth: Double): F[A]
Inherited from
Style
def transform[A](img: F[A], tx: Transform): F[A]
Inherited from
Transform
def translate[A](img: F[A], vec: Vec): F[A]
Inherited from
Transform
def translate[A](img: F[A], x: Double, y: Double): F[A]
Inherited from
Transform
def triangle(width: Double, height: Double): F[Unit]

An isoceles triangle with the given width and height.

An isoceles triangle with the given width and height.

Inherited from
Shape
def under[A](bottom: F[A], top: F[A])(implicit s: Semigroup[A]): F[A]
Inherited from
Layout
def verticalReflection[A](img: F[A]): F[A]
Inherited from
Transform
def width[A](picture: F[A]): F[Double]

Get the width of the bounding box enclosing the picture

Get the width of the bounding box enclosing the picture

Inherited from
Size