Beenden
  • Globale Community
    • Sprache:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티

alert value h s b

Fürsprecher ,
Nov 17, 2018 Nov 17, 2018

I would like a warning window if possible

with the values H S B

as shown.

Color-Picker-Foreground-Color-2018-11-17-21-40-51.jpg

THEMEN
Aktionen und Skripte
471
Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines

correct answers 1 richtige Antwort

Community Expert , Nov 17, 2018 Nov 17, 2018

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

Übersetzen
Adobe
Community Expert ,
Nov 17, 2018 Nov 17, 2018

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

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Fürsprecher ,
Nov 18, 2018 Nov 18, 2018

Just what I needed

a question

I would like to display only the figures before the point

can the figures be deleted later?

aas.jpg

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Community Expert ,
Nov 18, 2018 Nov 18, 2018
AKTUELL

Try

alert(Math.round(col.hue));

or

alert(Math.ceil(col.hue));

What you need.

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines