Skip to content

hsb

Defines an HSB color, used in the SolidColor object.

HSBColor

Bases: Photoshop

An HSB color specification.

Source code in photoshop/api/colors/hsb.py
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
class HSBColor(Photoshop):
    """An HSB color specification."""

    object_name = "HSBColor"

    def __init__(self, parent):
        super().__init__(parent=parent)

    @property
    def brightness(self):
        return round(self.app.brightness)

    @brightness.setter
    def brightness(self, value):
        self.app.brightness = value

    @property
    def saturation(self):
        return round(self.app.saturation)

    @saturation.setter
    def saturation(self, value):
        self.app.saturation = value

    @property
    def hue(self):
        """The hue value. Range: 0.0 to 360.0."""
        return round(self.app.hue)

    @hue.setter
    def hue(self, value):
        self.app.hue = value

hue property writable

The hue value. Range: 0.0 to 360.0.


Last update: 2024-03-05
Created: 2024-03-05