                 locations: [Double] = []) {
         self.colors = colors
         self.locations = locations
+        updateValueArray()
         hasUpdate = true
     }
     

    /// The color location values of the provider.
    public var locations: [Double] {
        didSet {
            hasUpdate = true
        }
    }

        return colorValues + (shouldAddAlphaValues ? alphaValues : [])
    }
    
    private func updateValueArray() {
        value = value(from: colors, locations: locations)
    }
    
    private var hasUpdate: Bool = true
    
    private var block: ColorsValueBlock?
    private var locationsBlock: ColorLocationsBlock?
    private var value: [Double] = []
}
