Picture

doodle.svg.package$.Picture$

Attributes

Source
package.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Show all
Self type
Picture.type

Members list

Type members

Types

type Algebra = Algebra

Attributes

Source
package.scala
type Drawing[A] = Drawing[A]

Attributes

Source
package.scala

Inherited types

type Picture[A] = Picture[Algebra, A]

Attributes

Inherited from:
BaseConstructor
Source
BaseConstructor.scala

Value members

Inherited methods

def catmulRom(points: Seq[Point], tension: Double): Picture[Unit]

Attributes

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)

Attributes

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.

Attributes

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.

Attributes

Inherited from:
PathConstructor
Source
Path.scala

Attributes

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

Attributes

Inherited from:
PathConstructor
Source
Path.scala
def path(path: ClosedPath): Picture[Unit]

Attributes

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.

Attributes

Inherited from:
ShapeConstructor
Source
Shape.scala
def regularPolygon(sides: Int, radius: Double): Picture[Unit]

Attributes

Inherited from:
PathConstructor
Source
Path.scala
def roundedRectangle(width: Double, height: Double, radius: Double): Picture[Unit]

Attributes

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.

Attributes

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

Attributes

Inherited from:
PathConstructor
Source
Path.scala
def text(text: String): Picture[Unit]

Render the given String

Render the given String

Attributes

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.

Attributes

Inherited from:
ShapeConstructor
Source
Shape.scala