bitbybit.dev v1.0.0-rc.1
    Preparing search index...

    Class SceneDrawGridMeshDto

    Index

    Constructors

    • Parameters

      • Optionalwidth: number
      • Optionalheight: number
      • Optionalsubdivisions: number
      • OptionalmajorUnitFrequency: number
      • OptionalminorUnitVisibility: number
      • OptionalgridRatio: number
      • Optionalopacity: number
      • OptionalbackFaceCulling: boolean
      • OptionalmainColor: string
      • OptionalsecondaryColor: string

      Returns SceneDrawGridMeshDto

    Properties

    width: number

    Width of the grid

    400
    

    0

    Infinity

    10

    height: number

    Height of the ground

    400
    

    0

    Infinity

    10

    subdivisions: number

    Ground subdivisions

    10
    

    0

    Infinity

    1

    majorUnitFrequency: number

    The frequency of thicker lines.

    10
    

    0

    Infinity

    1

    minorUnitVisibility: number

    The visibility of minor units in the grid.

    0.45
    

    0

    1

    0.1

    gridRatio: number

    The scale of the grid compared to unit.

    0.5
    

    0

    Infinity

    0.1

    opacity: number

    The grid opacity outside of the lines.

    0.5
    

    0

    1

    0.1

    backFaceCulling: boolean

    Cull the back faces

    false
    
    mainColor: string

    Main color of the grid (e.g. between lines)

    #ffffff
    
    secondaryColor: string

    Color of the grid lines.

    #ffffff