0.0.4 • Published 8 years ago

fable-import-three v0.0.4

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
8 years ago

fable-import-three

Fable bindings for three.js

Installation

$ npm install --save fable-core three
$ npm install --save-dev fable-import-three

Usage

Note: To prevent naming conflicts, THREE as a module is upper case, while three as a value containing global methods is lower case.

In a F# project (.fsproj)

  <ItemGroup>
    <Reference Include="node_modules/fable-core/Fable.Core.dll" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="node_modules/fable-import-three/Fable.Import.Three.fs" />
  </ItemGroup>

In a F# script (.fsx)

#r "node_modules/fable-core/Fable.Core.dll"
#load "node_modules/fable-import-three/Fable.Import.Three.fs"

open Fable.Core
open Fable.Import