[name]

The GridHelper is an object to define grids. Grids are two-dimensional arrays of lines.

Example

var size = 10; var step = 1; var gridHelper = new THREE.GridHelper( size, step ); gridHelper.position = new THREE.Vector3( 10, 10, 0 ); gridHelper.rotation = new THREE.Euler( 15, 0, 0 ); scene.add( gridHelper );

Constructor

[name]([page:number size], [page:Number step])

size -- The size of the grid
step -- The size of the step btween 2 lines
Creates a new [name] of size 'size' and with steps of size 'step'.

Methods

.setColors([page:number colorCenterLine], [page:Number colorGrid])

colorCenterLine -- The color of the centerline. This can be a [page:Color], a hexadecimal value and an CSS-Color name.
colorGrid -- The color of the lines of the grid. This can be a [page:Color], a hexadecimal value and an CSS-Color name.
Updates the color of the grid lines.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]