class CanvasRendererOptions extends Object
Canvas Renderer Options
- Annotations
- @RawJSType() @ScalaJSDefined()
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CanvasRendererOptions
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
CanvasRendererOptions(view: UndefOr[HTMLCanvasElement] = js.undefined, transparent: UndefOr[Boolean] = js.undefined, autoResize: UndefOr[Boolean] = js.undefined, antialias: UndefOr[Boolean] = js.undefined, resolution: UndefOr[Resolution] = js.undefined, clearBeforeRender: UndefOr[Boolean] = js.undefined, roundPixels: UndefOr[Boolean] = js.undefined)
- view
the canvas to use as a view, optional
- transparent
If the render view is transparent, default false
- autoResize
If the render view is automatically resized, default false
- antialias
sets antialias. If not available natively then FXAA antialiasing is used
- resolution
the resolution of the renderer retina would be 2
- clearBeforeRender
This sets if the CanvasRenderer will clear the canvas or not before the new render pass. If you wish to set this to false, you must set preserveDrawingBuffer to true.
- roundPixels
If true Pixi will Math.floor() x/y values when rendering, stopping pixel interpolation.
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
- var antialias: UndefOr[Boolean]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- var autoResize: UndefOr[Boolean]
- var clearBeforeRender: UndefOr[Boolean]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- var resolution: UndefOr[Resolution]
- var roundPixels: UndefOr[Boolean]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- var transparent: UndefOr[Boolean]
-
def
valueOf(): Any
- Definition Classes
- Object
- var view: UndefOr[HTMLCanvasElement]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )