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
Source:
BaseConstructor.scala

Value members

Inherited methods

def apply(f: Algebra[Drawing] => Drawing[Unit]): Picture[Unit]
Inherited from:
BaseConstructor
Source:
BaseConstructor.scala
def catmulRom(points: Seq[Point], tension: Double): Picture[Unit]
Inherited from:
PathConstructor
Source:
Path.scala
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
Source:
Shape.scala
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
Source:
Shape.scala
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
Source:
Path.scala
def interpolatingSpline(points: Seq[Point]): Picture[Unit]
Inherited from:
PathConstructor
Source:
Path.scala
def path(path: OpenPath): Picture[Unit]
Inherited from:
PathConstructor
Source:
Path.scala
def path(path: ClosedPath): Picture[Unit]
Inherited from:
PathConstructor
Source:
Path.scala
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
Source:
Shape.scala
def regularPolygon(sides: Int, radius: Double): Picture[Unit]
Inherited from:
PathConstructor
Source:
Path.scala
def roundedRectangle(width: Double, height: Double, radius: Double): Picture[Unit]
Inherited from:
PathConstructor
Source:
Path.scala
def square(width: Double): Picture[Unit]

A square with the given side length.

A square with the given side length.

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

Render the given String

Render the given String

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