mirror of
https://github.com/iluvcapra/pycmx.git
synced 2025-12-31 00:40:57 +00:00
documentation
This commit is contained in:
18
pycmx/cdl.py
18
pycmx/cdl.py
@@ -9,9 +9,14 @@ T = TypeVar('T')
|
||||
|
||||
@dataclass
|
||||
class Rgb(Generic[T]):
|
||||
red: T
|
||||
green: T
|
||||
blue: T
|
||||
"""
|
||||
A tuple of three `T`s, where each is the respective red, green and blue
|
||||
values of interest.
|
||||
"""
|
||||
|
||||
red: T #: Red component
|
||||
green: T #: Green component
|
||||
blue: T #: Blue component
|
||||
|
||||
|
||||
@dataclass
|
||||
@@ -27,9 +32,10 @@ class AscSopComponents(Generic[T]):
|
||||
for each color component the source, where the `slope` is `a`, `offset`
|
||||
is `b` and `power` is `p`.
|
||||
"""
|
||||
slope: Rgb[T]
|
||||
offset: Rgb[T]
|
||||
power: Rgb[T]
|
||||
|
||||
slope: Rgb[T] #: The component
|
||||
offset: Rgb[T] #: The constant component
|
||||
power: Rgb[T] #: The exponential component
|
||||
|
||||
|
||||
class FramecountTriple(NamedTuple):
|
||||
|
||||
Reference in New Issue
Block a user