Picture

object Picture extends BaseConstructor with PathConstructor with ShapeConstructor with TextConstructor
trait TextConstructor
trait ShapeConstructor
trait PathConstructor
trait BaseConstructor
class Object
trait Matchable
class Any
Picture.type

Type members

Types

type Algebra[x[_]] = Algebra[x]
type Drawing[A] = Drawing[A]

Inherited types

type Picture[A] = Picture[Algebra, Drawing, A]
Inherited from:
BaseConstructor

Value members

Inherited methods

def apply(f: Algebra[Drawing] => Drawing[Unit]): Picture[Unit]
Inherited from:
BaseConstructor
def catmulRom(points: Seq[Point], tension: Double): Picture[Unit]
Inherited from:
PathConstructor
def circle(diameter: Double): Picture[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:
ShapeConstructor
def empty: Picture[Unit]

The empty shape, which is no shape at all.

The empty shape, which is no shape at all.

Inherited from:
ShapeConstructor
def equilateralTriangle(width: Double): Picture[Unit]

Create an equilateral triangle with the given side length.

Create an equilateral triangle with the given side length.

Inherited from:
PathConstructor
def interpolatingSpline(points: Seq[Point]): Picture[Unit]
Inherited from:
PathConstructor
def path(path: OpenPath): Picture[Unit]
Inherited from:
PathConstructor
def path(path: ClosedPath): Picture[Unit]
Inherited from:
PathConstructor
def rectangle(width: Double, height: Double): Picture[Unit]

A rectangle with the given width and height.

A rectangle with the given width and height.

Inherited from:
ShapeConstructor
def regularPolygon(sides: Int, radius: Double): Picture[Unit]
Inherited from:
PathConstructor
def roundedRectangle(width: Double, height: Double, radius: Double): Picture[Unit]
Inherited from:
PathConstructor
def square(width: Double): Picture[Unit]

A square with the given side length.

A square with the given side length.

Inherited from:
ShapeConstructor
def star(points: Int, outerRadius: Double, innerRadius: Double): Picture[Unit]
Inherited from:
PathConstructor
def text(text: String): Picture[Unit]

Render the given String

Render the given String

Inherited from:
TextConstructor
def triangle(width: Double, height: Double): Picture[Unit]

An isoceles triangle with the given width and height.

An isoceles triangle with the given width and height.

Inherited from:
ShapeConstructor