Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
isisscripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
20
Issues
20
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
remeis
isisscripts
Commits
cf3183ca
Commit
cf3183ca
authored
Feb 17, 2024
by
Jakob Stierhof
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better help for color palettes
parent
4aa3da02
Pipeline
#7074
passed with stages
in 38 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
src/slang/color/palettes.sl
src/slang/color/palettes.sl
+14
-1
No files found.
src/slang/color/palettes.sl
View file @
cf3183ca
...
...
@@ -206,6 +206,12 @@ add_color_palette("sron:landcover", [0x5566aa, 0x117733, 0x44aa66, 0x55aa22, 0x6
% The SRON colors are defined in Paul Tol's technical note (\code{https://personal.sron.nl/~pault/data/colourschemes.pdf})
% and provides a set of colors for qualitative, diverging, and sequential
% representations.
%
% Note: To get the original set of colors (was provided by \code{get_sron_colors})
% use \code{get_color_palette("sron-rainbow", n);} for diverging and sequential
% there are no direct matches. See the other color palette options.
%
%\seealso{get_color_palette_names, palette--sron-rainbow}
%!%-
%}}}
...
...
@@ -312,7 +318,7 @@ private define blend_palette (n)
%
% The qualifier \code{space} allows to control in what space the interpolation
% is done. This either must be one of the known color spaces "hsl", "hsluv",
% "hpluv", or "rgb", or a tu
b
le (list with 2 elements) with references
% "hpluv", or "rgb", or a tu
p
le (list with 2 elements) with references
% to two functions. The first must take three arguments (R,G,B) as 8 bit
% encoded colors and convert it to the color space variables (x,y,z). The
% second converts back (x,y,z) -> (R,G,B).
...
...
@@ -539,6 +545,13 @@ private define colormap_palette (n, name)
% It returns \code{len} values from a linear mapping of the
% given colormap. The colors are constructed from palette--blend
% and forwards all qualifiers to this constructor.
%
% Note: This function is used only if the given \code{name} is
% a colormap (and does not match a palette name, see \code{png_get_colormap_names}),
% to construct a % set of colors from a color array see
% palette--blend.
%
%\seealso{png_get_colormap_names, palette--name}
%!%-
{
#ifexists png_add_colormap
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment