abstract class SketchApp extends Sketch
- Alphabetic
- By Inheritance
- SketchApp
- Sketch
- Shape
- AnyRef
- Any
- by richDrxAny
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SketchApp()
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- final def +=(f: (DrawContext) => Unit): Sketch
safely add new draw functions
safely add new draw functions
- Definition Classes
- Sketch
- def ->[B](y: B): (SketchApp, B)
- final def :=(f: (DrawContext) => Unit): Sketch
- Definition Classes
- Sketch
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- var _args: Array[String]
- Attributes
- protected[drx]
- def applyIf(t: Boolean, f: (SketchApp) => SketchApp): SketchApp
- Implicit
- This member is added by an implicit conversion from SketchApp toDrxAny[SketchApp] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (SketchApp) => Boolean)(f: (SketchApp) => SketchApp): SketchApp
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from SketchApp toDrxAny[SketchApp] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def args: Array[String]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def background: Color
- final def clear: Unit
remove all draw functions
remove all draw functions
- Definition Classes
- Sketch
- def clearEachFrame: Boolean
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def draw(implicit g: DrawContext): Unit
the interface of any Shape that can be sent to a render the fact that a Sketch itself can be a shape provides nice composability
- final def drawFunctions: Iterable[(DrawContext) => Unit]
safely access the iterator over all drawFunctions
safely access the iterator over all drawFunctions
- Definition Classes
- Sketch
- def elementOf(xs: Set[SketchApp]): Boolean
- Implicit
- This member is added by an implicit conversion from SketchApp toDrxAny[SketchApp] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (SketchApp) => Boolean, msg: => Any): SketchApp
- def ensuring(cond: (SketchApp) => Boolean): SketchApp
- def ensuring(cond: Boolean, msg: => Any): SketchApp
- def ensuring(cond: Boolean): SketchApp
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def icon: ImgFile
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def launch(): drx.Future[Unit]
- final def launch(implicit ec: drx.ExecutionContext): drx.Future[Unit]
- def main(args: Array[String]): Unit
- def maxFPS: Option[Int]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noneIf(f: (SketchApp) => Boolean): Option[SketchApp]
- Implicit
- This member is added by an implicit conversion from SketchApp toDrxAny[SketchApp] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def onDraw(f: (DrawContext) => Unit): Unit
alias to '+=' (add) a draw function, this is a helper function to reduce boiler plate; (adds return of unit ()) when only a single draw funtion is desired in an automatic app
- def optionIf(f: (SketchApp) => Boolean): Option[SketchApp]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from SketchApp toDrxAny[SketchApp] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def preApply[B](f: (SketchApp) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from SketchApp toDrxAny[SketchApp] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def sideEffect(f: (SketchApp) => Unit): SketchApp
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from SketchApp toDrxAny[SketchApp] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def size: Vec
- def sketch: SketchApp
alias to this so a SketchApp can be easily and automatically constructed
- def someIf(f: (SketchApp) => Boolean): Option[SketchApp]
- Implicit
- This member is added by an implicit conversion from SketchApp toDrxAny[SketchApp] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val thisAny: SketchApp
- Implicit
- This member is added by an implicit conversion from SketchApp toDrxAny[SketchApp] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def title: String
- def toString(): String
- Definition Classes
- SketchApp → AnyRef → Any
- def transparent: Boolean
- 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()
- def ~(color: Color): Styled
provide a quick automatic way to set a fill or stroke all shapes have a stroke even if they can be filled (but the ClosedShape overrides this to provide a fill color)
provide a quick automatic way to set a fill or stroke all shapes have a stroke even if they can be filled (but the ClosedShape overrides this to provide a fill color)
- Definition Classes
- Shape
- def ~(property: Property): Styled
initialize shape with a style
initialize shape with a style
- Definition Classes
- Shape
- def ~(style: Style): Styled
Attach a style to a shape
Attach a style to a shape
- Definition Classes
- Shape
Deprecated Value Members
- def ?>(f: (SketchApp) => Boolean): Option[SketchApp]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from SketchApp toDrxAny[SketchApp] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to many symbols are hard to undertand
- def |>[B](f: (SketchApp) => B): B
- Implicit
- This member is added by an implicit conversion from SketchApp toDrxAny[SketchApp] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
preApply
if you must (symbols are concise without concision)
- def →[B](y: B): (SketchApp, B)
- Implicit
- This member is added by an implicit conversion from SketchApp toArrowAssoc[SketchApp] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.