API Docs for: 0.2.0
Show:

Texture Class

Module: LE

The Texture class is used to render images to the scene. Shadows can be cast off a Texture, they are cast based on the vertices

Constructor

Texture

(
  • [parameters]
)

Parameters:

  • [parameters] Object optional

    Parameters is an object that contains the PointLights properties

    • [x=0] Number optional

      X position

    • [y=0] Number optional

      Y position

    • [rotation=0] Number optional

      Rotation

    • [vertices=LE.Vertices.square(50, 50)] Object optional

      Vertices

    • textureURL String

      Texture URL

Item Index

Properties

centerPoint

Object private

rotation

Number

Default: 0

textureURL

String private

vertices

Object private

Default: LE.Vertices.square(50, 50)

x

Number

Default: 0

y

Number

Default: 0