• Gets the particles color

    Parameters

    • Optional input: string | IColor

      the input color to convert in IRgb object

    • Optional index: number

      the array index, if needed

    • useIndex: boolean = true

      set to false to ignore the index parameter

    Returns IRgb | undefined