Gradient.Stop

Defines a gradient color stop based on a percentage offset.

Rectangle {
    width: 100
    height: 100

    gradient: Gradient.Linear {
        Gradient.Stop { 
            stop: 0
            color: #red
        }
        Gradient.Stop { 
            stop: 0.5
            color: #orange
        }
        Gradient.Stop { 
            stop: 1
            color: #lime
        }
    }
}

To specify the stop as an exact pixel, use Gradient.PixelStop.

property Float stop: 0

The percentage offset.

property Color color: #black

The stop color.