Skip to content

Pick a gradient by dragging a line over an image captured from desktop.

License

Notifications You must be signed in to change notification settings

Roland09/GradientPicker_Standalone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GradientPicker (Standalone)

Description

Gradientpicker allows you to capture the primary desktop and create a gradient by dragging the mouse over the captured image.

Background

I wanted to create gradients for colorizing a Canyon I created using World Creator. The terrain was then imported into Unity, the gradient applied using MicroSplat. With this tool you can capture e. g. an image of a mountain, drag a line along the mountain and get the color gradient of it.

Usage

The app captures the primary desktop and puts it as image into the Source Image panel. When you drag the mouse over the image a line is painted. All points along the line are sampled and a gradient is created from it. When you paint a new line, the existing one and its gradient are erased and a new one is created.

You can change the gradient width by choosing the desired resolution.

The gradient can be saved as PNG file with the width of the gradient and a height of 1 pixel.

If you want to capture another image, clicking "New Session" captures the primary desktop again.

The Export Rotation option allows you to save the gradient image at a specified rotation. There are presets for popular apps and assets like World Creator and MicroSplat.

Screenshot

Here's a screenshot how it looks like currently:

gradient-picker-screenshot 3

The black line is the line of which the gradient points are sampled.

And here's a video of it in action:

GradientPicker

Example Use Case

Here's how the gradient is used on a World Creator terrain:

canyon

mountain-gradient

License

MIT License

Credits

This is my first C# standalone app, it only took 4 hours to figure out how to do this thanks to the awesome people who provided support in these links:

About

Pick a gradient by dragging a line over an image captured from desktop.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages