                 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
        }
    }

    /// The colors values of the provider.
    public var colors: [Color] {
        didSet {
            updateValueArray()
            hasUpdate = true
        }
    }
