{"id":22546331,"url":"https://github.com/meet-aleksey/gradientcolorpicker","last_synced_at":"2026-04-27T23:38:09.663Z","repository":{"id":144186895,"uuid":"121484277","full_name":"meet-aleksey/GradientColorPicker","owner":"meet-aleksey","description":"This is control for Windows Forms, which allows to select colors to create gradients.","archived":false,"fork":false,"pushed_at":"2018-02-16T19:23:46.000Z","size":321,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-08T09:03:01.774Z","etag":null,"topics":["color-picker","csharp","gradients","netframework","user-interface","usercontrol","windows-forms","winforms"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meet-aleksey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-14T07:46:08.000Z","updated_at":"2023-03-02T18:08:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e6e0551-3fa0-4bbc-b446-91c2a37f95f4","html_url":"https://github.com/meet-aleksey/GradientColorPicker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meet-aleksey%2FGradientColorPicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meet-aleksey%2FGradientColorPicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meet-aleksey%2FGradientColorPicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meet-aleksey%2FGradientColorPicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meet-aleksey","download_url":"https://codeload.github.com/meet-aleksey/GradientColorPicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245999322,"owners_count":20707554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["color-picker","csharp","gradients","netframework","user-interface","usercontrol","windows-forms","winforms"],"created_at":"2024-12-07T15:07:00.155Z","updated_at":"2026-04-27T23:38:04.644Z","avatar_url":"https://github.com/meet-aleksey.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# GradientColorPicker Control for Windows Forms\n[![Visual Studio](https://img.shields.io/badge/Visual%20Studio-2010%20%2F%202017-68217a.svg?style=flat)](https://www.visualstudio.com/)\n[![Windows Forms](https://img.shields.io/badge/Windows%20Forms--68217a.svg?style=flat)](https://docs.microsoft.com/en-us/dotnet/framework/winforms/)\n[![.NET Framework](https://img.shields.io/badge/.NET-v3.5%20%2F%20v4.7-68217a.svg?style=flat)](https://www.microsoft.com/net/download)\n[![License](https://img.shields.io/github/license/meet-aleksey/GradientColorPicker.svg?style=flat\u0026label=License)](https://github.com/meet-aleksey/GradientColorPicker/blob/master/LICENSE)\n[![NuGet](https://img.shields.io/nuget/dt/GradientColorPicker.svg?style=flat\u0026label=Downloads)](https://www.nuget.org/packages/GradientColorPicker/)\n\nThis is control for Windows Forms, which allows to select colors to create gradients.\n\n![Preview](preview.png)\n\n## Install\n\nTo install GradientColorPicker control, run the following command in the Package Manager Console:\n\n```\nInstall-Package GradientColorPicker\n```\n\n## How to use\n\nInstall the GradientColorPicker package in your Windows Forms project.\n\nOr [download an archive file containing binary assemblies](https://github.com/meet-aleksey/GradientColorPicker/releases), \nunpack it and add to your project a reference to the assembly of the version of .NET Framework that you are using.\n\nNow you can create an instance of the GradientColorPicker and add to the form:\n\n```C#\n// create a new instance of GradientColorPicker\nvar gradientColorPicker = new GradientColorPicker();\n\n// for example, set the minimum number of items (colors)\ngradientColorPicker.MinimumColorCount = 4;\n\n// for example, randomize the postion and color of the items\ngradientColorPicker1.Randomize(true, true);\n\n// add the GradientColorPicker to the form\nControls.Add(gradientColorPicker);\n\n// use the DrawLinearGradientToImage method to drawing linear gradient image\n// for example, draw a gradient in the background image of the form\n\n// create image \nBackgroundImage = new Bitmap(ClientSize.Width, ClientSize.Height);\n// draw a linear gradient\ngradientColorPicker1.DrawLinearGradientToImage(BackgroundImage);\n\n// or DrawRadialGradientToImage method  to drawing radial gradient image\n\n// we need to specify a central point\nvar centerPoint = new PointF(ClientSize.Width / 2, ClientSize.Height / 2);\n// draw a radial gradient\ngradientColorPicker1.DrawRadialGradientToImage(BackgroundImage, ClientRectangle, centerPoint);\n```\n\nIf you can not find the control on the toolbox in designer mode, you need to add GradientColorPicker to the toolbox:\n\n[![How to add a control to the Visual Studio toolbox](youtube.jpg)](https://www.youtube.com/watch?v=Zasmw8zfIbI)\n\n1. Right-click on toolbox.\n2. Select \"Choose Items\".\n3. Browse the GradientColorPicker assembly on your computer.\n4. Add the item.\n5. Enjoy!\n\n## Requirements\n\n* .NET Framework 3.5/4.0/4.5/4.6/4.7 or later;\n* Windows Forms.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\nCopyright © 2018, [@meet-aleksey](https://github.com/meet-aleksey)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeet-aleksey%2Fgradientcolorpicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeet-aleksey%2Fgradientcolorpicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeet-aleksey%2Fgradientcolorpicker/lists"}