API-INDEX

MODULE: ThreeJS


Methods [Exported]

ambientlight() Creates an ambient light tag.

ambientlight(color::ColorTypes.RGB{FixedPointNumbers.UfixedBase{UInt8, 8}}) Creates an ambient light tag.

box(w::Float64, h::Float64, d::Float64) Creates a Box geometry of width w, height h and depth d.

camera(x::Float64, y::Float64, z::Float64) Creates a camera tag.

cylinder(top::Float64, bottom::Float64, height::Float64) Creates a Cylinder geometry of bottom radius bottom, top radius top and

dodecahedron(radius::Float64) Creates a Dodecahedron geometry of radius radius.

geometry(vertices::Array{Tuple{Float64, Float64, Float64}, 1}, faces::Array{Tuple{Int64, Int64, Int64}, 1}) Creates a geometry.

grid(size::Float64, step::Float64) Creates a grid element.

icosahedron(radius::Float64) Creates a icosahedron geometry of radius radius.

initscene() Initiates a three-js scene

line(vertices::Array{Tuple{Float64, Float64, Float64}, 1}) Creates a line tag.

line(verticeswithcolor::Array{Tuple{Float64, Float64, Float64, ColorTypes.Color{T, N}}, 1}) Helper function to make creating line easier.

linematerial() Creates a line material tag.

linematerial(props) Creates a line material tag.

material() Creates a material tag with properties passed in as a dictionary.

material(props::Dict{K, V}) Creates a material tag with properties passed in as a dictionary.

mesh(x::Float64, y::Float64, z::Float64) Creates a Three-js mesh at position (x,y,z).

meshlines(slices::Int64, stacks::Int64, xrange::Range{T}, yrange::Range{T}, f::Function) Creates a mesh plot.

octahedron(radius::Float64) Creates a icosahedron geometry of radius radius.

outerdiv() Outer div to keep the three-js tag in.

outerdiv(w::AbstractString) Outer div to keep the three-js tag in.

outerdiv(w::AbstractString, h::AbstractString) Outer div to keep the three-js tag in.

parametric(slices::Int64, stacks::Int64, xrange::Range{T}, yrange::Range{T}, f::Function) Creates a parametric surface.

plane(width::Float64, height::Float64) Creates a plane in the XY plane with specified width and height centered

pointlight(x::Float64, y::Float64, z::Float64) Creates a point light tag.

pyramid(b::Float64, h::Float64) Creates a square base Pyramid geometry of base b and height h.

sphere(r::Float64) Creates a Sphere geometry of radius r.

spotlight(x::Float64, y::Float64, z::Float64) Creates a spot light tag.

tetrahedron(radius::Float64) Creates a tetrahedron geometry of radius radius.

torus(radius::Float64, tube::Float64) Creates a Torus geometry of radius radius and tube radius tube.