doodle.core

package doodle.core

Members list

Packages

Type members

Classlikes

final class Angle(val toRadians: Double)

An angle in radians

An angle in radians

Attributes

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

Attributes

Companion
class
Source
Angle.scala
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
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
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
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object BoundingBox

Attributes

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

Attributes

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

Attributes

Companion
class
Source
Cap.scala
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
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object ClosedPath

Attributes

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

Attributes

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

Attributes

Companion
class
Source
Color.scala
Supertypes
trait Sum
trait Mirror
trait CommonColors
class Object
trait Matchable
class Any
Show all
Self type
Color.type
trait CommonColors

Attributes

Source
CommonColors.scala
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
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
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Coordinate.type
sealed trait Gradient extends Product, Serializable

Attributes

Companion
object
Source
Gradient.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Linear
class Radial
object Gradient

Attributes

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

Attributes

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

Attributes

Companion
class
Source
Join.scala
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
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Landmark

Attributes

Companion
class
Source
Landmark.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Landmark.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
Supertypes
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any
Show all
object Normalized

Attributes

Companion
class
Source
Normalized.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Normalized.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
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object OpenPath

Attributes

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

Attributes

Companion
object
Source
Parametric.scala
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
Supertypes
class Object
trait Matchable
class Any
Self type
Parametric.type
sealed abstract class PathElement extends Product, Serializable

Attributes

Companion
object
Source
PathElement.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class LineTo
class MoveTo
object PathElement

Attributes

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

Attributes

Companion
object
Source
Point.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Cartesian
class Polar
object Point

Attributes

Companion
class
Source
Point.scala
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
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Transform

Attributes

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

Attributes

Companion
object
Source
UnsignedByte.scala
Supertypes
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any
Show all
object UnsignedByte

Attributes

Companion
class
Source
UnsignedByte.scala
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
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Vec

Attributes

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