doodle.core

package doodle.core

Members list

Concise view

Type members

Classlikes

final class Angle(val toRadians: Double)

An angle in radians

An angle in radians

Attributes

Companion:
object
Source:
Angle.scala
Graph
Supertypes
class Object
trait Matchable
class Any
object Angle

Attributes

Companion:
class
Source:
Angle.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Angle.type
final case class Base64[Fmt <: Format](value: String)

Wrapper class for storing base-64 encoded bitmap data along with the format of that bitmap.

Wrapper class for storing base-64 encoded bitmap data along with the format of that bitmap.

E.g. val pngData = Base64[Png]("data here ...") represents a base-64 bitmap in Png format.

Attributes

Source:
Base64.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
final case class BoundingBox(left: Double, top: Double, right: Double, bottom: Double)

A doodle.core.BoundingBox represents a bounding box around an picture.

A doodle.core.BoundingBox represents a bounding box around an picture.

A bounding box also defines a local coordinate system for a picture. The bounding box must contain the origin of the coordinate system. However the origin need not be centered within the box.

No particular guarantees are made about the tightness of the bounding box, though it can assumed to be reasonably tight.

Attributes

Companion:
object
Source:
BoundingBox.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
BoundingBox.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed abstract class Cap extends Product with Serializable

Attributes

Companion:
object
Source:
Cap.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
object Butt.type
object Round.type
object Square.type
object Cap

Attributes

Companion:
class
Source:
Cap.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Cap.type
final case class ClosedPath

Elements are stored in reversed order to make appending, the most common operation, more efficient.

Elements are stored in reversed order to make appending, the most common operation, more efficient.

Attributes

Companion:
object
Source:
ClosedPath.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
object ClosedPath

Attributes

Companion:
class
Source:
ClosedPath.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed abstract class Color extends Product with Serializable

Attributes

Companion:
object
Source:
Color.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
class HSLA
class RGBA
object Color extends CommonColors

Attributes

Companion:
class
Source:
Color.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Color.type

Attributes

Source:
CommonColors.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Color.type
sealed trait Coordinate

A Coordinate represents a position on an axis relative to a bounding box's origin. Coordinates can be specified as a (1D) point or as a percentage relative to the edge of the bounding box.

A Coordinate represents a position on an axis relative to a bounding box's origin. Coordinates can be specified as a (1D) point or as a percentage relative to the edge of the bounding box.

For example, Coordinate.point(10) is ten units from the origin in the positive direction, while Coordinate.percent(100) is the positive (top or right) edge of the bounding box.

Attributes

Companion:
object
Source:
Coordinate.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Add
class Percent
class Point
class Subtract
object Coordinate

Attributes

Companion:
trait
Source:
Coordinate.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait Gradient extends Product with Serializable

Attributes

Companion:
object
Source:
Gradient.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
class Linear
class Radial
object Gradient

Attributes

Companion:
trait
Source:
Gradient.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed abstract class Join extends Product with Serializable

Attributes

Companion:
object
Source:
Join.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
object Bevel.type
object Miter.type
object Round.type
object Join

Attributes

Companion:
class
Source:
Join.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Join.type
final case class Landmark(x: Coordinate, y: Coordinate)

A Landmark represents a position relative to the origin of a bounding box.

A Landmark represents a position relative to the origin of a bounding box.

Attributes

Companion:
object
Source:
Landmark.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
object Landmark

Attributes

Companion:
class
Source:
Landmark.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class Normalized(get: Double) extends AnyVal

A value in the range [0, 1]

A value in the range [0, 1]

Attributes

Companion:
object
Source:
Normalized.scala
Graph
Supertypes
trait Product
trait Equals
class AnyVal
trait Matchable
class Any
object Normalized

Attributes

Companion:
class
Source:
Normalized.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final case class OpenPath

Elements are stored in reversed order to make appending, the most common operation, more efficient.

Elements are stored in reversed order to make appending, the most common operation, more efficient.

Attributes

Companion:
object
Source:
OpenPath.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
object OpenPath

Attributes

Companion:
class
Source:
OpenPath.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
trait Parametric[A] extends A => Point

Attributes

Companion:
object
Source:
Parametric.scala
Graph
Supertypes
trait A => Point
class Object
trait Matchable
class Any
Known subtypes
object Parametric

A collection of parametric curves.

A collection of parametric curves.

A parametric curve is a function from some input---usually a normalized number or an angle---to a Point.

Attributes

Companion:
trait
Source:
Parametric.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed abstract class PathElement extends Product with Serializable

Attributes

Companion:
object
Source:
PathElement.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
class LineTo
class MoveTo

Attributes

Companion:
class
Source:
PathElement.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed abstract class Point extends Product with Serializable

Attributes

Companion:
object
Source:
Point.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
class Cartesian
class Polar
object Point

Attributes

Companion:
class
Source:
Point.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Point.type
final case class Transform(elements: Array[Double])

Representation of an affine transformation as an augmented matrix.

Representation of an affine transformation as an augmented matrix.

Attributes

Companion:
object
Source:
Transform.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
object Transform

Attributes

Companion:
class
Source:
Transform.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class UnsignedByte(value: Byte) extends AnyVal

Attributes

Companion:
object
Source:
UnsignedByte.scala
Graph
Supertypes
trait Product
trait Equals
class AnyVal
trait Matchable
class Any

Attributes

Companion:
class
Source:
UnsignedByte.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final case class Vec(x: Double, y: Double)

A 2D vector. We can't use the name Vector as Scala already uses it.

A 2D vector. We can't use the name Vector as Scala already uses it.

Attributes

Companion:
object
Source:
Vec.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
object Vec

Attributes

Companion:
class
Source:
Vec.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Vec.type