Skip to content

Commit

Permalink
Better name
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright authored and zauguin committed Oct 14, 2021
1 parent 63c5c83 commit d788d76
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions l3kernel/l3color.dtx
Expand Up @@ -442,9 +442,9 @@
% Applying a profile can be used to standardise color which is otherwise
% device-dependence.
%
% \begin{function}[added = 2021-02-23]{\color_iccprofile_apply:nn}
% \begin{function}[added = 2021-02-23]{\color_profile_apply:nn}
% \begin{syntax}
% \cs{color_iccprofile_apply:nn} \Arg{profile} \Arg{model}
% \cs{color_profile_apply:nn} \Arg{profile} \Arg{model}
% \end{syntax}
% This function applies a \meta{profile} to one of the device \meta{models}.
% The profile will then apply to all color of the selected \meta{model}. The
Expand Down Expand Up @@ -2532,41 +2532,41 @@
%
% \subsection{Applying profiles}
%
% \begin{macro}{\color_iccprofile_apply:nn, \@@_iccprofile_apply:nn}
% \begin{macro}{\color_profile_apply:nn, \@@_profile_apply:nn}
% \begin{macro}
% {
% \@@_iccprofile_apply_gray:n ,
% \@@_iccprofile_apply_rgb:n ,
% \@@_iccprofile_apply_cmyk:n
% \@@_profile_apply_gray:n ,
% \@@_profile_apply_rgb:n ,
% \@@_profile_apply_cmyk:n
% }
% With a limited range of outcomes, this is largely about getting data to the
% backend.
% \begin{macrocode}
\cs_new_protected:Npn \color_iccprofile_apply:nn #1#2
\cs_new_protected:Npn \color_profile_apply:nn #1#2
{
\exp_args:Ne \@@_iccprofile_apply:nn
\exp_args:Ne \@@_profile_apply:nn
{ \file_full_name:n {#1} } {#2}
}
\cs_new_protected:Npn \@@_iccprofile_apply:nn #1#2
\cs_new_protected:Npn \@@_profile_apply:nn #1#2
{
\cs_if_exist_use:cF { @@_iccprofile_apply_ \tl_to_str:n {#2} :n }
\cs_if_exist_use:cF { @@_profile_apply_ \tl_to_str:n {#2} :n }
{
\msg_error:nnn { color } { ICC-Device-unknown } {#2}
\use_none:n
}
{#1}
}
\cs_new_protected:Npn \@@_iccprofile_apply_gray:n #1
\cs_new_protected:Npn \@@_profile_apply_gray:n #1
{
\int_gincr:N \g_@@_model_int
\@@_backend_iccbased_device:nnn {#1} { Gray } { 1 }
}
\cs_new_protected:Npn \@@_iccprofile_apply_rgb:n #1
\cs_new_protected:Npn \@@_profile_apply_rgb:n #1
{
\int_gincr:N \g_@@_model_int
\@@_backend_iccbased_device:nnn {#1} { RGB } { 3 }
}
\cs_new_protected:Npn \@@_iccprofile_apply_cmyk:n #1
\cs_new_protected:Npn \@@_profile_apply_cmyk:n #1
{
\int_gincr:N \g_@@_model_int
\@@_backend_iccbased_device:nnn {#1} { CMYK } { 4 }
Expand Down

0 comments on commit d788d76

Please sign in to comment.