Select an image file jpg, png, webp
Use the form above to load an image. Click the 'Upload image' button, copy and paste or drag and drop an image into the uploader.
Set the foreground and background color to set the start and end colors of the color transition for the gradient.
Press and drag to draw a line in the image to set the start and end points of the gradient. The gradient is applied once the mouse is lifted.
The gradient tool allows you to create smooth transitions between colors in your image. It is useful for adding depth, shading, or artistic effects by blending colors seamlessly.
The gradient tool works by creating a smooth transition between two or more colors in your image. You can choose the start and end colors, and the tool will blend them seamlessly across the selected area, creating a gradient effect. Preset gradients allow you to quickly apply common gradient styles without manually selecting the start and end colors.
A gradient consists of a set of color-position pairs that determine how the specified colors should transition when used to fill an area. The color-position pairs are conventionally called color stops in image editing. Each color stop is assigned a position from 0 to 1 that is used to place the color relative to the distance of the drawn gradient line. The most basic gradient is a transition between two color stops but a gradient can theoretically have as many color stops as desired. Below is a table of two gradients in each row. Each column displays:
| Color Stop Table | Linear Visualization | Rendered Gradient | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
||||||||||||||||
|
|
|
In the table above two linear gradients are shown. The first gradient in the above table is a simple two color-stop gradient. The rendered gradient is as a result of drawing a horizontal line and shows how the gradient color transitions from red at the start point to yellow at the end point. Notice how in between the color stops the color changes from red to orange then to yellow. This is the color transition that a gradient creates between color stops.
As previously mentioned the color stop positions are relative to the drawn gradient line. For the first gradient the start point is at coordinate (22,31) and the end point is at (96,31). The color stop positions are relative to the line you draw to create the gradient. The red stop at position 0 will be placed at the starting point (22,31) and the yellow stop at position 1 will be placed at point (96, 31). This is how the color stops positions are positioned relative to the line. If another color stop were placed at position 0.5 then it would be placed at the center of the drawn gradient line at point (59,31).
The second gradient has three color stops. It is rendered along a non-horizontal line with purple at position 0 or the beginning, blue at 0.5 or in the middle and green at position 1 or at the end. This shows how gradients transitions the color stops along the direction of the drawn line. Any direction you draw the line the color transitions will follow.
There are several types of gradients that can be created. The most common types are linear and radial gradients. A linear gradient transitions colors along a straight line, while a radial gradient transitions colors radiating from a central point. The type of gradient determines how the color stops are applied and how the color transitions appear in the rendered gradient.