Link in Zwischenablage kopieren
Kopiert
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
Link in Zwischenablage kopieren
Kopiert
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
Link in Zwischenablage kopieren
Kopiert
Just what I needed
a question
I would like to display only the figures before the point
can the figures be deleted later?
Link in Zwischenablage kopieren
Kopiert
Try
alert(Math.round(col.hue));
or
alert(Math.ceil(col.hue));
What you need.
Weitere Inspirationen, Events und Ressourcen finden Sie in der neuen Adobe Community
Jetzt ansehen