Bitbybit Docs
    Preparing search index...

    Class DrawLinesDto<T> (Inputs.Line)

    A list of lines and how to draw them: their width, colors and opacity, and whether the drawn mesh will be updated later.

    Type Parameters

    • T
    Index

    Constructors

    • Provide options without default values

      Type Parameters

      • T

      Parameters

      • Optionallines: LinePointsDto[]
      • Optionalopacity: number
      • Optionalcolours: string | string[]
      • Optionalsize: number
      • Optionalupdatable: boolean
      • OptionallinesMesh: T

      Returns DrawLinesDto<T>

    Properties

    lines: LinePointsDto[]

    The lines to draw, each with its start and end.

    undefined
    
    opacity?: number

    How opaque the lines are, from 0 (invisible) to 1 (solid).

    1
    

    0

    1

    0.1

    colours?: string | string[]

    One hex color text for all lines, or one text per line.

    #444444
    
    size?: number

    Width of the drawn lines.

    3
    

    0

    Infinity

    0.1

    updatable?: boolean

    When true, the drawn mesh is built so the ends can be moved later without redrawing.

    false
    
    linesMesh?: T

    A mesh drawn earlier for these lines; when given it is updated in place instead of a new one being made.

    undefined
    

    true