Copy link to clipboard
Copied
I would like a warning window if possible
with the values H S B
as shown.
I hope that I understand you right:
you want to open the color picker and gets the hsb value of this color?
If so, try this:
app.showColorPicker();
var col = app.foregroundColor.hsb;
alert(col.hue);
alert(col.saturation);
alert(col.brightness);
hsb.hue + hsb. saturation + hsb.brightness
Have fun
Copy link to clipboard
Copied
I hope that I understand you right:
you want to open the color picker and gets the hsb value of this color?
If so, try this:
app.showColorPicker();
var col = app.foregroundColor.hsb;
alert(col.hue);
alert(col.saturation);
alert(col.brightness);
hsb.hue + hsb. saturation + hsb.brightness
Have fun
Copy link to clipboard
Copied
Just what I needed
a question
I would like to display only the figures before the point
can the figures be deleted later?
Copy link to clipboard
Copied
Try
alert(Math.round(col.hue));
or
alert(Math.ceil(col.hue));
What you need.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now