8
0

Compare commits

..

1 Commits

Author SHA256 Message Date
7db719d332 Automatic update to v1.920.0 (1.92) 2025-08-26 15:36:48 +00:00
4 changed files with 103 additions and 55 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:34e88b6f6858f47d996101f1582f1eb00db7f86e129e5f1d61bf7f9bddb62ef2
size 74925

BIN
Graphics-Toolkit-Color-1.92.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,50 @@
-------------------------------------------------------------------
Tue Aug 26 15:36:48 UTC 2025 - Tina Müller <timueller+perl@suse.de>
- updated to 1.920.0 (1.92)
see /usr/share/doc/packages/perl-Graphics-Toolkit-Color/Changes
1.92 2025-08-20 lichtkind
-------
* = minor feature release
* + methods "name" and "closest_name" work on any scheme from Graphics::ColorNames
* ~ extended "CSS_string" format, commas are now optional
* ~ no space between axis value and suffix allowed
* ~ color space "CIELCHuv" got alias name "LCHuv"
* & converter value IO moved to standard tuple format
* ? POD syntax fixes
1.91 2025-08-12 lichtkind
-------
* = minor bug fix release
* ~ added aliases for renamed methods "add_value" and "set_value"
* ? POD syntax fixes
* ? rewrote parts of ::Color::Space POD
1.9 2025-08-12 lichtkind
-------
* = major feature release
* * added "cluster" and "invert" calculation method
* * added "closest_name" method
* * added support of 5 color spaces: NCol YUV CIELUV CIELCHab CIELCHuv,
rewrote CIEXYZ CIELAB
* + extended range definitions with explicit type names
* + color spaces can now define value precision,
value suffix ('%') and
value parsing regex
* ? added documentation for color space object and missing formats
* & moved code into Space::Format space attribute object class
* & removed Carp and Test::Warn as dependencies
* & moved color and color set calculators into own packages
* ~ reworked all calculator methods
* ~ renamed single color calculator method "blend" method to "mix"
* ~ renamed method "add" and "set" to "add_value" and "set_value"
* ~ renamed method "mix" argument "with" to "to"
* ~ renamed method "gradient" argument "dynamic" to "tilt"
* ~ default space of methods 'distance', 'mix' and 'gradient'
went from HSL to RGB, consistent with defaults (complement has to be HSL)
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Mar 8 22:28:05 UTC 2024 - Tina Müller <tina.mueller@suse.com> Fri Mar 8 22:28:05 UTC 2024 - Tina Müller <tina.mueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Graphics-Toolkit-Color # spec file for package perl-Graphics-Toolkit-Color
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,11 +18,12 @@
%define cpan_name Graphics-Toolkit-Color %define cpan_name Graphics-Toolkit-Color
Name: perl-Graphics-Toolkit-Color Name: perl-Graphics-Toolkit-Color
Version: 1.710.0 Version: 1.920.0
Release: 0 Release: 0
%define cpan_version 1.71 # 1.92 -> normalize -> 1.920.0
%define cpan_version 1.92
License: Artistic-1.0 OR GPL-1.0-or-later License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Color palette constructor Summary: Calculate color (sets), IO many spaces and formats
URL: https://metacpan.org/release/%{cpan_name} URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/L/LI/LICHTKIND/%{cpan_name}-%{cpan_version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/L/LI/LICHTKIND/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
@@ -30,63 +31,63 @@ Source100: README.md
BuildArch: noarch BuildArch: noarch
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Carp) >= 1.35
BuildRequires: perl(Test::More) >= 1.3 BuildRequires: perl(Test::More) >= 1.3
BuildRequires: perl(Test::Warn) >= 0.30 Provides: perl(Graphics::Toolkit::Color) = %{version}
Requires: perl(Carp) >= 1.35 Provides: perl(Graphics::Toolkit::Color::Name) = %{version}
Provides: perl(Graphics::Toolkit::Color) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Name::Constant) = %{version}
Provides: perl(Graphics::Toolkit::Color::Name) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Name::Scheme) = %{version}
Provides: perl(Graphics::Toolkit::Color::Name::Constant) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::SetCalculator) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Space) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Basis) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Space::Basis) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Hub) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Space::Format) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Instance::CMY) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Space::Hub) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Instance::CMYK) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Space::Instance::CIELAB) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Instance::HSB) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Space::Instance::CIELCHab) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Instance::HSL) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Space::Instance::CIELCHuv) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Instance::HSV) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Space::Instance::CIELUV) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Instance::HWB) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Space::Instance::CIEXYZ) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Instance::LAB) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Space::Instance::CMY) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Instance::RGB) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Space::Instance::CMYK) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Instance::XYZ) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Space::Instance::HSB) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Instance::YIQ) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Space::Instance::HSL) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Shape) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Space::Instance::HSV) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Util) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Space::Instance::HWB) = %{version}
Provides: perl(Graphics::Toolkit::Color::Values) = 1.710.0 Provides: perl(Graphics::Toolkit::Color::Space::Instance::NCol) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Instance::RGB) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Instance::YIQ) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Instance::YUV) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Shape) = %{version}
Provides: perl(Graphics::Toolkit::Color::Space::Util) = %{version}
Provides: perl(Graphics::Toolkit::Color::Values) = %{version}
%undefine __perllib_provides %undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
ATTENTION: deprecated methods of the old API ( _string_, _rgb_, _red_, Graphics::Toolkit::Color, for short *GTC*, is the top level API of this
_green_, _blue_, _rgb_hex_, _rgb_hash_, _hsl_, _hue_, _saturation_, release and the only package a regular user should be concerned with. Its
_lightness_, _hsl_hash_, _blend_with_, _gradient_to_, _rgb_gradient_to_, main purpose is the creation of related colors or sets of them, such as
_hsl_gradient_to_, _complementary_) will be removed on version 2.0. gradients, complements and others. But you can use it also to convert
and/or reformat color definitions.
Graphics::Toolkit::Color, for short GTC, is the top level API of this GTC are read only, one color representing objects with no additional
module and the only one a regular user should be concerned with. Its main dependencies. Create them in many different ways (see CONSTRUCTOR). Access
purpose is the creation of sets of related colors, such as gradients, its values via methods from section GETTER. Measure differences with the
complements and others. distance method. SINGLE-COLOR methods create one new object that is related
to the current one and COLOR-SETS methods will create a group of colors,
that are not only related to the current color but also have relations
between each other. Error messages will appear as return values instead of
the expected result.
GTC are read only color holding objects with no additional dependencies. While this module can understand and output color values to many color
Create them in many different ways (see section CONSTRUCTOR). Access its spaces, color spaces is the (internal) primal one, because GTC is about
values via methods from section GETTER. Measure differences with the colors that can be shown on the screen, and these are usually encoded in
_distance_ method. SINGLE-COLOR methods create one a object that is related _RGB_. Humans access colors on hardware level (eye) in _RGB_, on cognition
to the current one and COLOR-SETS methods will create a host of color that level in _HSL_ (brain) and on cultural level (language) with names. Having
are not only related to the current color but also have relations between easy access to all of those plus some color math and many formats should
each other. enable you to get the color palette you desire quickly.
While this module can understand and output color values in many spaces,
such as YIQ, HSL and many more, RGB is the (internal) primal one, because
GTC is about colors that can be shown on the screen, and these are usually
encoded in RGB.
Humans access colors on hardware level (eye) in RGB, on cognition level in
HSL (brain) and on cultural level (language) with names. Having easy access
to all three and some color math should enable you to get the color palette
you desire quickly.
%prep %prep
%autosetup -n %{cpan_name}-%{cpan_version} %autosetup -n %{cpan_name}-%{cpan_version} -p1
%build %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor