Path

trait Path extends Algebra
Source:
Path.scala
trait Algebra
class Object
trait Matchable
class Any
trait GenericPath[G]
class Algebra
trait Basic

Type members

Inherited types

type Drawing[_]

The effect type that methods on this algebra produce. Represents an effect that, when run, will draw something and produce a value.

The effect type that methods on this algebra produce. Represents an effect that, when run, will draw something and produce a value.

Inherited from:
Algebra
Source:
Algebra.scala

Value members

Abstract methods

def path(path: OpenPath): Drawing[Unit]
Source:
Path.scala

Concrete methods

def catmulRom(points: Seq[Point], tension: Double): Drawing[Unit]
Source:
Path.scala

Create an equilateral triangle with the given side length.

Create an equilateral triangle with the given side length.

Source:
Path.scala
def regularPolygon(sides: Int, radius: Double): Drawing[Unit]
Source:
Path.scala
def roundedRectangle(width: Double, height: Double, radius: Double): Drawing[Unit]
Source:
Path.scala
def star(points: Int, outerRadius: Double, innerRadius: Double): Drawing[Unit]
Source:
Path.scala

Implicits

Inherited implicits

Inherited from:
Algebra
Source:
Algebra.scala