Skip to content

brewer.gle

Library of Brewer palettes for Graphics Layout Engine.

Palettes ported by Francois Tonneau (2025).


LIBRARY SUMMARY


The palettes in this library are ported from ColorBrewer:

https://en.wikipedia.org/wiki/ColorBrewer

The palettes can be sequential, divergent, or qualitative. The name of each

palette ends with its color count (= how many colors the palette comprises).

Some palette names include color abbreviations such as Bu for blue, Pu for

purple, Yl for yellow, etc.

The list of available palettes follows. For brevity, palettes with the same

base name but with different color counts (e.g., AccentQual3, AccentQual4, ...

AccentQual8) are listed as a single name followed by a numeric range (e.g.,

"AccentQual 3-8").

AccentQual 3-8

BluesSeq 3-9

BrBGDiv 3-11

BuGnSeq 3-9

BuPuSeq 3-9

Dark2Qual 3-8

GnBuSeq 3-9

GreensSeq 3-9

GreysSeq 3-9

OrangesSeq 3-9

OrRdSeq 3-9

PairedQual 3-12

Pastel1Qual 3-9

Pastel2Qual 3-8

PiYGDiv 3-11

PRGnDiv 3-11

PuBuSeq 3-9

PuBuGnSeq 3-9

PuOrDiv 3-11

PuRdSeq 3-9

PurplesSeq 3-9

RdBuDiv 3-11

RdGyDiv 3-11

RdPuSeq 3-9

RedsSeq 3-9

RdYlBuDiv 3-11

RdYlGnDiv 3-11

Set1Qual 3-9

Set2Qual 3-8

Set3Qual 3-12

SpectralDiv 3-11

YlGnSeq 3-9

YlGnBuSeq 3-9

YlOrBrSeq 3-9

YlOrRdSeq 3-9


PALETTE SUBROUTINES


sub AccentQual3 z
sub AccentQual4 z
sub AccentQual5 z
sub AccentQual6 z
sub AccentQual7 z
sub AccentQual8 z
sub BluesSeq3 z
sub BluesSeq4 z
sub BluesSeq5 z
sub BluesSeq6 z
sub BluesSeq7 z
sub BluesSeq8 z
sub BluesSeq9 z
sub BrBGDiv3 z
sub BrBGDiv4 z
sub BrBGDiv5 z
sub BrBGDiv6 z
sub BrBGDiv7 z
sub BrBGDiv8 z
sub BrBGDiv9 z
sub BrBGDiv10 z
sub BrBGDiv11 z
sub BuGnSeq3 z
sub BuGnSeq4 z
sub BuGnSeq5 z
sub BuGnSeq6 z
sub BuGnSeq7 z
sub BuGnSeq8 z
sub BuGnSeq9 z
sub BuPuSeq3 z
sub BuPuSeq4 z
sub BuPuSeq5 z
sub BuPuSeq6 z
sub BuPuSeq7 z
sub BuPuSeq8 z
sub BuPuSeq9 z
sub Dark2Qual3 z
sub Dark2Qual4 z
sub Dark2Qual5 z
sub Dark2Qual6 z
sub Dark2Qual7 z
sub Dark2Qual8 z
sub GnBuSeq3 z
sub GnBuSeq4 z
sub GnBuSeq5 z
sub GnBuSeq6 z
sub GnBuSeq7 z
sub GnBuSeq8 z
sub GnBuSeq9 z
sub GreensSeq3 z
sub GreensSeq4 z
sub GreensSeq5 z
sub GreensSeq6 z
sub GreensSeq7 z
sub GreensSeq8 z
sub GreensSeq9 z
sub GreysSeq3 z
sub GreysSeq4 z
sub GreysSeq5 z
sub GreysSeq6 z
sub GreysSeq7 z
sub GreysSeq8 z
sub GreysSeq9 z
sub OrangesSeq3 z
sub OrangesSeq4 z
sub OrangesSeq5 z
sub OrangesSeq6 z
sub OrangesSeq7 z
sub OrangesSeq8 z
sub OrangesSeq9 z
sub OrRdSeq3 z
sub OrRdSeq4 z
sub OrRdSeq5 z
sub OrRdSeq6 z
sub OrRdSeq7 z
sub OrRdSeq8 z
sub OrRdSeq9 z
sub PairedQual3 z
sub PairedQual4 z
sub PairedQual5 z
sub PairedQual6 z
sub PairedQual7 z
sub PairedQual8 z
sub PairedQual9 z
sub PairedQual10 z
sub PairedQual11 z
sub PairedQual12 z
sub Pastel1Qual3 z
sub Pastel1Qual4 z
sub Pastel1Qual5 z
sub Pastel1Qual6 z
sub Pastel1Qual7 z
sub Pastel1Qual8 z
sub Pastel1Qual9 z
sub Pastel2Qual3 z
sub Pastel2Qual4 z
sub Pastel2Qual5 z
sub Pastel2Qual6 z
sub Pastel2Qual7 z
sub Pastel2Qual8 z
sub PiYGDiv3 z
sub PiYGDiv4 z
sub PiYGDiv5 z
sub PiYGDiv6 z
sub PiYGDiv7 z
sub PiYGDiv8 z
sub PiYGDiv9 z
sub PiYGDiv10 z
sub PiYGDiv11 z
sub PRGnDiv3 z
sub PRGnDiv4 z
sub PRGnDiv5 z
sub PRGnDiv6 z
sub PRGnDiv7 z
sub PRGnDiv8 z
sub PRGnDiv9 z
sub PRGnDiv10 z
sub PRGnDiv11 z
sub PuBuSeq3 z
sub PuBuSeq4 z
sub PuBuSeq5 z
sub PuBuSeq6 z
sub PuBuSeq7 z
sub PuBuSeq8 z
sub PuBuSeq9 z
sub PuBuGnSeq3 z
sub PuBuGnSeq4 z
sub PuBuGnSeq5 z
sub PuBuGnSeq6 z
sub PuBuGnSeq7 z
sub PuBuGnSeq8 z
sub PuBuGnSeq9 z
sub PuOrDiv3 z
sub PuOrDiv4 z
sub PuOrDiv5 z
sub PuOrDiv6 z
sub PuOrDiv7 z
sub PuOrDiv8 z
sub PuOrDiv9 z
sub PuOrDiv10 z
sub PuOrDiv11 z
sub PuRdSeq3 z
sub PuRdSeq4 z
sub PuRdSeq5 z
sub PuRdSeq6 z
sub PuRdSeq7 z
sub PuRdSeq8 z
sub PuRdSeq9 z
sub PurplesSeq3 z
sub PurplesSeq4 z
sub PurplesSeq5 z
sub PurplesSeq6 z
sub PurplesSeq7 z
sub PurplesSeq8 z
sub PurplesSeq9 z
sub RdBuDiv3 z
sub RdBuDiv4 z
sub RdBuDiv5 z
sub RdBuDiv6 z
sub RdBuDiv7 z
sub RdBuDiv8 z
sub RdBuDiv9 z
sub RdBuDiv10 z
sub RdBuDiv11 z
sub RdGyDiv3 z
sub RdGyDiv4 z
sub RdGyDiv5 z
sub RdGyDiv6 z
sub RdGyDiv7 z
sub RdGyDiv8 z
sub RdGyDiv9 z
sub RdGyDiv10 z
sub RdGyDiv11 z
sub RdPuSeq3 z
sub RdPuSeq4 z
sub RdPuSeq5 z
sub RdPuSeq6 z
sub RdPuSeq7 z
sub RdPuSeq8 z
sub RdPuSeq9 z
sub RedsSeq3 z
sub RedsSeq4 z
sub RedsSeq5 z
sub RedsSeq6 z
sub RedsSeq7 z
sub RedsSeq8 z
sub RedsSeq9 z
sub RdYlBuDiv3 z
sub RdYlBuDiv4 z
sub RdYlBuDiv5 z
sub RdYlBuDiv6 z
sub RdYlBuDiv7 z
sub RdYlBuDiv8 z
sub RdYlBuDiv9 z
sub RdYlBuDiv10 z
sub RdYlBuDiv11 z
sub RdYlGnDiv3 z
sub RdYlGnDiv4 z
sub RdYlGnDiv5 z
sub RdYlGnDiv6 z
sub RdYlGnDiv7 z
sub RdYlGnDiv8 z
sub RdYlGnDiv9 z
sub RdYlGnDiv10 z
sub RdYlGnDiv11 z
sub Set1Qual3 z
sub Set1Qual4 z
sub Set1Qual5 z
sub Set1Qual6 z
sub Set1Qual7 z
sub Set1Qual8 z
sub Set1Qual9 z
sub Set2Qual3 z
sub Set2Qual4 z
sub Set2Qual5 z
sub Set2Qual6 z
sub Set2Qual7 z
sub Set2Qual8 z
sub Set3Qual3 z
sub Set3Qual4 z
sub Set3Qual5 z
sub Set3Qual6 z
sub Set3Qual7 z
sub Set3Qual8 z
sub Set3Qual9 z
sub Set3Qual10 z
sub Set3Qual11 z
sub Set3Qual12 z
sub SpectralDiv3 z
sub SpectralDiv4 z
sub SpectralDiv5 z
sub SpectralDiv6 z
sub SpectralDiv7 z
sub SpectralDiv8 z
sub SpectralDiv9 z
sub SpectralDiv10 z
sub SpectralDiv11 z
sub YlGnSeq3 z
sub YlGnSeq4 z
sub YlGnSeq5 z
sub YlGnSeq6 z
sub YlGnSeq7 z
sub YlGnSeq8 z
sub YlGnSeq9 z
sub YlGnBuSeq3 z
sub YlGnBuSeq4 z
sub YlGnBuSeq5 z
sub YlGnBuSeq6 z
sub YlGnBuSeq7 z
sub YlGnBuSeq8 z
sub YlGnBuSeq9 z
sub YlOrBrSeq3 z
sub YlOrBrSeq4 z
sub YlOrBrSeq5 z
sub YlOrBrSeq6 z
sub YlOrBrSeq7 z
sub YlOrBrSeq8 z
sub YlOrBrSeq9 z
sub YlOrRdSeq3 z
sub YlOrRdSeq4 z
sub YlOrRdSeq5 z
sub YlOrRdSeq6 z
sub YlOrRdSeq7 z
sub YlOrRdSeq8 z
sub YlOrRdSeq9 z