zenity/internal/zenutil/osascripts/color.gojs

6 lines
199 B
Plaintext
Raw Normal View History

2021-02-18 21:20:57 -05:00
var app = Application.currentApplication()
app.includeStandardAdditions = true
app.activate()
2021-02-19 12:46:47 -05:00
var res = app.chooseColor({defaultColor: {{json .}}})
2022-03-26 20:05:52 -04:00
{'rgb(' + res.map(x => Math.round(x * 255)) + ')'}