Skip to content

lab

LabColor

Bases: Photoshop

A Lab color specification.

Source code in photoshop/api/colors/lab.py
 5
 6
 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
class LabColor(Photoshop):
    """A Lab color specification."""

    object_name = "LabColor"

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

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

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

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

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

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

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

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