Package

purescript-mathbox

Repository
rintcius/purescript-mathbox
License
Apache-2.0
Uploaded by
rintcius
Published on
2019-05-11T16:20:22Z

Latest release Travis branch

Description

purescript-mathbox contains purescript bindings for MathBox.

In case you don't know MathBox yet:

MathBox is a library for rendering presentation-quality math diagrams in a browser using WebGL. Built on top of Three.js and ShaderGraph, it provides a clean API to visualize mathematical relationships and animate them declaratively.

Try Mathbox

purescript-mathbox is available as a backend of try-purescript, which means you can play online with it without having to install anything locally: try-mathbox

Examples

To get started, a couple of examples have been ported from the MathBox repos. A fairly minimal example is: https://github.com/rintcius/purescript-mathbox/blob/master/test/Mathbox/Examples/Main.purs

Other examples are in the same directory: https://github.com/rintcius/purescript-mathbox/blob/master/test/Mathbox/Examples

Build purescript-mathbox

# install project dependencies
npm run install

# build project and examples
npm run build-all

open examples/resources/*.html   # in your favorite browser

Contributing

Please feel free to file issues. However, note that I'll probably won't merge any PR's at the moment since the code in this lib is generated code (which is still private).

Modules
Mathbox.Class.Base.Group
Mathbox.Class.Base.Inherit
Mathbox.Class.Base.Parent
Mathbox.Class.Base.Root
Mathbox.Class.Base.Source
Mathbox.Class.Base.Unit
Mathbox.Class.Camera.Camera
Mathbox.Class.Data.Area
Mathbox.Class.Data.Array
Mathbox.Class.Data.Buffer
Mathbox.Class.Data.Data
Mathbox.Class.Data.Interval
Mathbox.Class.Data.Matrix
Mathbox.Class.Data.Resolve
Mathbox.Class.Data.Scale
Mathbox.Class.Data.Volume
Mathbox.Class.Data.Voxel
Mathbox.Class.Draw.Axis
Mathbox.Class.Draw.Face
Mathbox.Class.Draw.Grid
Mathbox.Class.Draw.Line
Mathbox.Class.Draw.Point
Mathbox.Class.Draw.Strip
Mathbox.Class.Draw.Surface
Mathbox.Class.Draw.Ticks
Mathbox.Class.Draw.Vector
Mathbox.Class.Operator.Clamp
Mathbox.Class.Operator.Grow
Mathbox.Class.Operator.Join
Mathbox.Class.Operator.Lerp
Mathbox.Class.Operator.Memo
Mathbox.Class.Operator.Operator
Mathbox.Class.Operator.Readback
Mathbox.Class.Operator.Repeat
Mathbox.Class.Operator.Resample
Mathbox.Class.Operator.Slice
Mathbox.Class.Operator.Split
Mathbox.Class.Operator.Spread
Mathbox.Class.Operator.Subdivide
Mathbox.Class.Operator.Swizzle
Mathbox.Class.Operator.Transpose
Mathbox.Class.Overlay.DOM
Mathbox.Class.Overlay.HTML
Mathbox.Class.Present.Move
Mathbox.Class.Present.Play
Mathbox.Class.Present.Present
Mathbox.Class.Present.Reveal
Mathbox.Class.Present.Slide
Mathbox.Class.Present.Step
Mathbox.Class.Present.Track
Mathbox.Class.Present.Transition
Mathbox.Class.Rtt.Compose
Mathbox.Class.Rtt.RTT
Mathbox.Class.Shader.Shader
Mathbox.Class.Text.Format
Mathbox.Class.Text.Label
Mathbox.Class.Text.Retext
Mathbox.Class.Text.Text
Mathbox.Class.Time.Clock
Mathbox.Class.Time.Now
Mathbox.Class.Transform.Fragment
Mathbox.Class.Transform.Layer
Mathbox.Class.Transform.Mask
Mathbox.Class.Transform.Transform
Mathbox.Class.Transform.Transform3
Mathbox.Class.Transform.Transform4
Mathbox.Class.Transform.Vertex
Mathbox.Class.View.Cartesian
Mathbox.Class.View.Cartesian4
Mathbox.Class.View.Polar
Mathbox.Class.View.Spherical
Mathbox.Class.View.Stereographic
Mathbox.Class.View.Stereographic4
Mathbox.Class.View.View
Mathbox.Classes
Mathbox.Field
Mathbox.Lenses
Mathbox.Mathbox
Mathbox.Types
Dependencies