2020-01-18 07:40:16 -05:00
|
|
|
package zenity_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"image/color"
|
|
|
|
|
|
|
|
"github.com/ncruces/zenity"
|
|
|
|
)
|
|
|
|
|
|
|
|
func ExampleSelectColor() {
|
|
|
|
zenity.SelectColor(
|
2020-01-21 11:13:45 -05:00
|
|
|
zenity.Color(color.NRGBA{R: 0x66, G: 0x33, B: 0x99, A: 0x80}))
|
2020-01-18 07:40:16 -05:00
|
|
|
// Output:
|
|
|
|
}
|
|
|
|
|
|
|
|
func ExampleSelectColor_palette() {
|
|
|
|
zenity.SelectColor(
|
|
|
|
zenity.ShowPalette(),
|
2020-01-21 11:13:45 -05:00
|
|
|
zenity.Color(color.NRGBA{R: 0x66, G: 0x33, B: 0x99, A: 0xff}))
|
2020-01-18 07:40:16 -05:00
|
|
|
// Output:
|
|
|
|
}
|