Picture

Picture.type

Type members

Types

type Drawing[A] = Drawing[A]

Inherited types

Value members

Inherited methods

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

The empty shape, which is no shape at all.

The empty shape, which is no shape at all.

Inherited from:
ShapeConstructor
Source:
Shape.scala

Create an equilateral triangle with the given side length.

Create an equilateral triangle with the given side length.

Inherited from:
PathConstructor
Source:
Path.scala
Inherited from:
PathConstructor
Source:
Path.scala
def path(path: OpenPath): Picture[Unit]
Inherited from:
PathConstructor
Source:
Path.scala
Inherited from:
PathConstructor
Source:
Path.scala
def read(file: String): Picture[Unit]

Convenience to read an image from the file specified in the given String

Convenience to read an image from the file specified in the given String

Inherited from:
BitmapConstructor
Source:
Bitmap.scala
def read(file: File): Picture[Unit]

Read an image from the given file

Read an image from the given file

Inherited from:
BitmapConstructor
Source:
Bitmap.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