object Image extends Serializable
- Source
- Image.scala
- Alphabetic
- By Inheritance
- Image
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def catmulRom(points: Seq[Point], tension: Double = 0.5): Path
Interpolate a spline (a curve) that passes through all the given points, using the Catmul Rom formulation (see, e.g., https://en.wikipedia.org/wiki/Cubic_Hermite_spline)
Interpolate a spline (a curve) that passes through all the given points, using the Catmul Rom formulation (see, e.g., https://en.wikipedia.org/wiki/Cubic_Hermite_spline)
The tension can be changed to control how tightly the curve turns. It defaults to 0.5.
The Catmul Rom algorithm requires a point before and after each pair of points that define the curve. To meet this condition for the first and last points in
points, they are repeated.If
pointshas less than two elements an emptyPathis returned. - def circle(diameter: Double): Image
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def closedPath(elements: Seq[PathElement]): Path
- def compile[Alg <: Basic](image: Image): Picture[Alg, Unit]
Compile an
Imageto adoodle.algebra.Picture - val empty: Image
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def equilateralTriangle(width: Double): Image
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def interpolatingSpline(points: Seq[Point]): Path
Construct an open path of bezier curves that intersects all the given points.
Construct an open path of bezier curves that intersects all the given points. Defaults to
catmulRomwith the default tension. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def line(x: Double, y: Double): Image
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def openPath(elements: Seq[PathElement]): Path
- def rectangle(width: Double, height: Double): Image
- def regularPolygon(sides: Int, radius: Double): Image
- def rightArrow(width: Double, height: Double): Image
- def roundedRectangle(width: Double, height: Double, radius: Double): Image
- def square(side: Double): Image
- def star(points: Int, outerRadius: Double, innerRadius: Double): Image
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def text(characters: String): Image
- def toString(): String
- Definition Classes
- AnyRef → Any
- def triangle(width: Double, height: Double): Image
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object Elements
Contains the leaves of the Image algebraic data type.
Contains the leaves of the Image algebraic data type. Packaged here so they don't pollute the namespace when importing Image to access to the smart constructors.