FullControl JS
    Preparing search index...

    Function calculateColor

    • Update color for a point based on color_type setting This is called from Point.updateColor() which is invoked from Point.visualize()

      Parameters

      • colorType: string

        The color scheme to use

      • extruderOn: boolean

        Whether extruder is currently on

      • currentColor: RGBColor | undefined

        The current/manual color if color_type is 'manual'

      • z: number

        Current Z position

      • boundingBox: BoundingBox

        Bounding box for z_gradient calculation

      • pointCountNow: number

        Current point index for sequence colors

      • pointCountTotal: number

        Total point count for sequence colors

      Returns RGBColor

      RGB color array [r, g, b] with values 0-1