A style class used to specify style of 3D points rendering as pixelated squares.

This rendering style is optimal for rendering large numbers of points that do not require great individual detail.

Hierarchy

  • PixelatedPoints3DRecord
    • PixelatedPoints3D

Constructors

  • When creating a new PixelatedPoints3D object, any amount of its default parameters can be overriden, by supplying the values to its constructor:

     new PointStyle3D.Pixelated({
    size: 4,
    fillStyle: new SolidFill({ color: ColorHex('#FFF') }),
    })

    Parameters

    Returns PixelatedPoints3D

Properties

fillStyle: FillStyle

FillStyle for rendering the points.

size: number

Size of the rendered points in pixels.

Some devices / browser configurations always render with 1 pixel, regardless of this setting.

Methods

  • Get fill style of PixelatedPoints3D.

    Returns

    FillStyle object

    Returns FillStyle

  • Get size of points rendered with this style object.

    Returns

    Size of the rendered points in pixels.

    Returns number

  • Construct a new PixelatedPoints3D object based on this one, but with different size.

    Returns

    New PixelatedPoints3D object

    Parameters

    • size: number

      Size of the rendered points in pixels.

    Returns PixelatedPoints3D