https://github.com/lusingander/colorpicker
Color picker component for Fyne 🎨
https://github.com/lusingander/colorpicker
color-picker colorpicker fyne go
Last synced: 4 months ago
JSON representation
Color picker component for Fyne 🎨
- Host: GitHub
- URL: https://github.com/lusingander/colorpicker
- Owner: lusingander
- License: mit
- Created: 2020-03-28T09:15:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-05-04T07:00:49.000Z (5 months ago)
- Last Synced: 2025-06-14T20:56:07.306Z (4 months ago)
- Topics: color-picker, colorpicker, fyne, go
- Language: Go
- Homepage:
- Size: 5.52 MB
- Stars: 18
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://pkg.go.dev/github.com/lusingander/colorpicker?tab=doc)
[](https://goreportcard.com/report/github.com/lusingander/colorpicker)
# colorpicker
Color picker component for [Fyne](https://fyne.io/)
## Usage
```go
picker := colorpicker.New(200 /* height */, colorpicker.StyleHue /* Style */)
picker.SetOnChanged(func(c color.Color) {
// called when the color is changed on the picker
fmt.Println(c)
})// you can use it just like any other Fyne widget
fyne.NewContainer(picker)
```## Documentation
See [pkg.go.dev](https://pkg.go.dev/github.com/lusingander/colorpicker?tab=doc)
## Example
### colorpicker
You can see all the styles implemented.
[colorpicker/cmd/colorpicker/](./cmd/colorpicker/)
----
### colorpicker-popup
Example of embedding in Fyne's custom dialog.
[colorpicker/cmd/colorpicker-popup/](./cmd/colorpicker-popup/)
![]()