gl-error3d

WebJar for gl-error3d

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

gl-error3d
Last Version

Last Version

1.0.16
Release Date

Release Date

Type

Type

jar
Description

Description

gl-error3d
WebJar for gl-error3d
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/gl-vis/gl-error3d

Download gl-error3d

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/gl-error3d/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>gl-error3d</artifactId>
    <version>1.0.16</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/gl-error3d/
implementation 'org.webjars.npm:gl-error3d:1.0.16'
// https://jarcasting.com/artifacts/org.webjars.npm/gl-error3d/
implementation ("org.webjars.npm:gl-error3d:1.0.16")
'org.webjars.npm:gl-error3d:jar:1.0.16'
<dependency org="org.webjars.npm" name="gl-error3d" rev="1.0.16">
  <artifact name="gl-error3d" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='gl-error3d', version='1.0.16')
)
libraryDependencies += "org.webjars.npm" % "gl-error3d" % "1.0.16"
[org.webjars.npm/gl-error3d "1.0.16"]

Dependencies

compile (5)

Group / Artifact Type Version
org.webjars.npm : glsl-out-of-range jar [1.0.4,2)
org.webjars.npm : gl-vao jar [1.3.0,2)
org.webjars.npm : gl-buffer jar [2.1.2,3)
org.webjars.npm : glslify jar [7.0.0,8)
org.webjars.npm : gl-shader jar [4.2.1,5)

Project Modules

There are no modules declared in this project.

gl-error3d

Draws error bars around data points

Example

var createScene = require('gl-plot3d')
var createScatter = require('gl-scatter3d')
var createErrorBars = require('gl-error3d')

var points = [ [0,0,0], [1,1,1], [-1, 2, -3] ]
var errors = [ 
  [[-0.5,-0.5,-0.5],[0.5,0.5,0.5]], 
  [[-0.1,-1,-2],[0,0,0]], 
  [[-0.1,-0.1,-0.1],[0.1,0.1,0.1]] 
]

var scene = createScene()

var scatter = createScatter({
  gl:           scene.gl,
  position:     points,
  size:         20,
  orthographic: true,
  lineColor:    [0,0,0],
  color:        [0.7,0.8,0.4],
  lineWidth:    1
})
scene.add(scatter)


var errorBars = createErrorBars({
  gl:       scene.gl,
  position: points,
  error:    errors,
  color:    [0.9, 0.3, 0.3]
})
scene.add(errorBars)

API

Constructor

var errorBars = require('gl-error3d')(options)

Creates a new error bar object.

  • gl is a WebGL context
  • position is the position of each point in the plot
  • error is an array of error bounds represented as [lo,hi] for each point
  • color a length 3 array of arrays giving the color of the error bars along each axis.
  • lineWidth is the width of the error bar lines in pixels
  • capSize is the size of the cap for error bars
  • clipBounds is a box to which all error bars will be clipped

Returns A new error bar object

errorBars.update(options)

Updates the error bar object

errorBars.dispose()

Destroy the error bars and release all associated resources

Credits

(c) 2014-2015 Mikola Lysenko. MIT License

org.webjars.npm

Versions

Version
1.0.16
1.0.15
1.0.14
1.0.13
1.0.10