mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 21:12:57 -05:00
app.showColorPicker(color) opens the Color Picker on an RGBColor,
CMYKColor, GrayColor or LabColor and returns the color picked for OK.
Cancel, and OK with the color unchanged, return a new object of the
color the script gave. Anything else throws a TypeError.
- In the app the run waits at the picker, which previews nothing on
the selection. Stop and quitting end the run as at the other script
dialogs and close the picker.
- A run with nobody to ask takes {kind: "colorPicker", value: color |
null} from answers. The report lists the picker with the color it
opened on and the answer.
- script.run's params text, docs/mcp.md and the Scripts line in
docs/target-app-parity.md describe it.