Color Brewer API sample application
Test 1: Get HTML palettes combo
Test 3: Make a HTML table with palette colors:
|
255,255,204 |
|
194,230,153 |
|
120,198,121 |
|
49,163,84 |
|
0,104,55 |
Test 4: List colors from a palette and an interval number:
255,255,204
194,230,153
120,198,121
49,163,84
0,104,55
Test 5: Get color number 4 like an array from a given palette. Sacar el color 4 (en forma de array) de la paleta 'YlGn' para 9 clases
Array
(
[red] => 49
[green] => 163
[blue] => 84
)
198
Test 6: Get a palettes array. Obtener un listado de paletas (array)
Array
(
[0] => YlGn
[1] => YlGnBu
[2] => GnBu
[3] => BuGn
[4] => PuBuGn
[5] => PuBu
[6] => BuPu
[7] => RdPu
[8] => PuRd
[9] => OrRd
[10] => YlOrRd
[11] => YlOrBr
[12] => Purples
[13] => Blues
[14] => Greens
[15] => Oranges
[16] => Reds
[17] => Greys
)
Test 7: Get an array from the intervals group of a given palette. Obtener un listado (array) con los posibles intervalos de una paleta. Siempre sera de 3 a 9
Array
(
[0] => 3
[1] => 4
[2] => 5
[3] => 6
[4] => 7
[5] => 8
[6] => 9
)
Test 8:Get colors array from a given palette and interval classes. Obtener un array de los colores de una paleta y un intervalo de clases
Array
(
[0] => Array
(
[red] => 255
[green] => 255
[blue] => 204
)
[1] => Array
(
[red] => 194
[green] => 230
[blue] => 153
)
[2] => Array
(
[red] => 120
[green] => 198
[blue] => 121
)
[3] => Array
(
[red] => 49
[green] => 163
[blue] => 84
)
[4] => Array
(
[red] => 0
[green] => 104
[blue] => 55
)
)
Test 9: Get HTML color code from RGB values
HTML color of 127,255,255 = #7fe1ff ▆▆▆▆▆▆