Module

MolDraw.DrawMol.Scene

Package
purescript-mol-draw
Repository
lukasturcani/molDraw

Deals with three.js scenes.

#Scene Source

data Scene

Represents a three.js scene.

#SceneOptions Source

type SceneOptions = { backgroundColor :: Color, containerId :: String, outline :: Boolean }

Holds user-provided options for customizing the drawn scene.

  • backgroundColor: The color of the scene background.
  • containerId: The id of the HTML div in which the scene should be drawn.
  • outline: Toggles the drawing of an outline around the drawn atoms and bonds.

#Color Source

type Color = Int

#scene Source

scene :: SceneOptions -> Array Mesh -> Scene

Create a three.js scene.