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