Skip to content

Commit

Permalink
Address minor, non-functional, inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Nov 30, 2024
1 parent 447e8ff commit 07fc217
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions coloraide/compositing/blend_modes.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ def apply(self, cb: Vector, cs: Vector) -> Vector: # pragma: no cover

raise NotImplementedError('apply is not implemented')

def blend(self, coords_backgrond: Vector, coords_source: Vector) -> Vector:
def blend(self, coords1: Vector, coords2: Vector) -> Vector:
"""Apply blending logic."""

return self.apply(coords_backgrond, coords_source)
return self.apply(coords1, coords2)


class BlendNormal(SeperableBlend):
Expand Down
2 changes: 1 addition & 1 deletion coloraide/interpolate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
if TYPE_CHECKING: # pragma: no cover
from ..color import Color

__all__ = ('stop', 'hint', 'get_interpolator')
__all__ = ('stop', 'hint', 'interpolator', 'Interpolate', 'Interpolator')


class stop:
Expand Down
8 changes: 4 additions & 4 deletions coloraide/spaces/okhsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ class Okhsv(HSV):
GAMUT_CHECK = None
CLIP_SPACE = None

def to_base(self, okhsv: Vector) -> Vector:
def to_base(self, coords: Vector) -> Vector:
"""To Oklab from Okhsv."""

return okhsv_to_oklab(okhsv, LMS_TO_SRGBL, SRGBL_COEFF)
return okhsv_to_oklab(coords, LMS_TO_SRGBL, SRGBL_COEFF)

def from_base(self, oklab: Vector) -> Vector:
def from_base(self, coords: Vector) -> Vector:
"""From Oklab to Okhsv."""

return oklab_to_okhsv(oklab, LMS_TO_SRGBL, SRGBL_COEFF)
return oklab_to_okhsv(coords, LMS_TO_SRGBL, SRGBL_COEFF)
8 changes: 4 additions & 4 deletions coloraide/spaces/oklab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ class Oklab(Lab):
}
WHITE = WHITES['2deg']['D65']

def to_base(self, oklab: Vector) -> Vector:
def to_base(self, coords: Vector) -> Vector:
"""To XYZ."""

return oklab_to_xyz_d65(oklab)
return oklab_to_xyz_d65(coords)

def from_base(self, xyz: Vector) -> Vector:
def from_base(self, coords: Vector) -> Vector:
"""From XYZ."""

return xyz_d65_to_oklab(xyz)
return xyz_d65_to_oklab(coords)

0 comments on commit 07fc217

Please sign in to comment.