Shade Pixel Art with a Dithered Gradient
Blend a warm sunset color into a dark blue sky with a visible pixel pattern instead of a smooth, airbrushed transition.
Set the two colors before drawing
Start on a small canvas and add a separate sky layer. Set the foreground to a warm orange, such as #F5AD62, and the background color to a dark blue, such as #222B52. These are the two drawing colors, not an instruction to fill the canvas with a Background layer. Use the foreground, background, and swap controls to check which color is which.
Choose Gradient, open Gradient options, and select Linear. Enable Ordered dithering and choose Done. Start with the default pattern so you can see what changing the drag does before changing the dithering settings as well.
Draw the transition and compare the result
Drag across the canvas from the side you want orange to the side you want blue. The foreground is at the start of a normal drag; a right-drag reverses the colors. Make a longer drag for a wider transition, or bring the endpoints closer together for a narrower one. Hold the pointer down while judging the preview, and press Escape if the direction is wrong.

Confine the shading to the area you want
The gradient fills the active layer or the active selection, not just the pixels directly under the drag. If the sky should stop at a window or horizon, make a selection before using the tool. To shade an existing shape on its own layer, use the Magic Wand to isolate a flat color first, then check the outline before dragging.
If the gradient covers the wrong area, undo the stroke and check both the active layer and the selection. Symmetry does not mirror gradients, and the Gradient tool is not available on tilemap layers.
Judge the pattern at the size people will see
Zoom out and check that the transition supports the foreground drawing instead of competing with its outline. If the middle looks too busy, try keeping the patterned portion narrower or using shades that are closer in brightness. In indexed artwork the gradient uses palette colors, so check the indexed palette if the result does not match the shades you expected.
To compare treatments, undo the first gradient and repeat the same drag with dithering disabled. Compare both versions at the same zoom: the smooth blend can work behind a busy foreground, while a visible pattern can suit a design built around a few flat colors. Restore the version you prefer. If you want a glow around a window instead of a band across the sky, try Radial and start the drag at the center of the glow.