new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

D3 · all subjects

d3-color

88 notes in this subject, read out of this brain and free to use. This is page 2 of 2.

interpolateMagma(t) signature

interpolateMagma(t) takes a number t in the range [0,1] and returns the corresponding color from the magma perceptually-uniform color scheme designed by van der Walt and Smith for matplotlib as an RGB string.

interpolatePlasma(t) signature

interpolatePlasma(t) takes a number t in the range [0,1] and returns the corresponding color from the plasma perceptually-uniform color scheme designed by van der Walt and Smith for matplotlib as an RGB string.

interpolateCividis(t) signature

interpolateCividis(t) takes a number t in the range [0,1] and returns the corresponding color from the cividis color vision deficiency-optimized color scheme designed by Nuñez, Anderton, and Renslow as an RGB string.

interpolateWarm(t) signature

interpolateWarm(t) takes a number t in the range [0,1] and returns the corresponding color from a 180° rotation of Niccoli's perceptual rainbow as an RGB string.

interpolateCool(t) signature

interpolateCool(t) takes a number t in the range [0,1] and returns the corresponding color from Niccoli's perceptual rainbow as an RGB string.

interpolateCubehelixDefault(t) signature

interpolateCubehelixDefault(t) takes a number t in the range [0,1] and returns the corresponding color from Green's default Cubehelix as an RGB string.

interpolateOrRd(t) signature

interpolateOrRd(t) takes a number t in the range [0,1] and returns the corresponding color from the OrRd sequential color scheme as an RGB string.

interpolatePuBuGn(t) signature

interpolatePuBuGn(t) takes a number t in the range [0,1] and returns the corresponding color from the PuBuGn sequential color scheme as an RGB string.

interpolatePuBu(t) signature

interpolatePuBu(t) takes a number t in the range [0,1] and returns the corresponding color from the PuBu sequential color scheme as an RGB string.

interpolatePuRd(t) signature

interpolatePuRd(t) takes a number t in the range [0,1] and returns the corresponding color from the PuRd sequential color scheme as an RGB string.

interpolateRdPu(t) signature

interpolateRdPu(t) takes a number t in the range [0,1] and returns the corresponding color from the RdPu sequential color scheme as an RGB string.

interpolateYlGn(t) signature

interpolateYlGn(t) takes a number t in the range [0,1] and returns the corresponding color from the YlGn sequential color scheme as an RGB string.

interpolateYlOrRd(t) signature

interpolateYlOrRd(t) takes a number t in the range [0,1] and returns the corresponding color from the YlOrRd sequential color scheme as an RGB string.

schemeBlues[k] discrete scheme

schemeBlues[k] is an array of arrays of hexadecimal color strings representing the Blues discrete sequential color scheme. The size k ranges from 3 to 9.

schemeGreys[k] discrete scheme

schemeGreys[k] is an array of arrays of hexadecimal color strings representing the Greys discrete sequential color scheme. The size k ranges from 3 to 9.

schemeOranges[k] discrete scheme

schemeOranges[k] is an array of arrays of hexadecimal color strings representing the Oranges discrete sequential color scheme. The size k ranges from 3 to 9.

schemePurples[k] discrete scheme

schemePurples[k] is an array of arrays of hexadecimal color strings representing the Purples discrete sequential color scheme. The size k ranges from 3 to 9.

schemeReds[k] discrete scheme

schemeReds[k] is an array of arrays of hexadecimal color strings representing the Reds discrete sequential color scheme. The size k ranges from 3 to 9.

schemePuBuGn[k] discrete scheme

schemePuBuGn[k] is an array of arrays of hexadecimal color strings representing the PuBuGn discrete sequential color scheme. The size k ranges from 3 to 9.

schemePuBu[k] discrete scheme

schemePuBu[k] is an array of arrays of hexadecimal color strings representing the PuBu discrete sequential color scheme. The size k ranges from 3 to 9.

schemePuRd[k] discrete scheme

schemePuRd[k] is an array of arrays of hexadecimal color strings representing the PuRd discrete sequential color scheme. The size k ranges from 3 to 9.

schemeRdPu[k] discrete scheme

schemeRdPu[k] is an array of arrays of hexadecimal color strings representing the RdPu discrete sequential color scheme. The size k ranges from 3 to 9.

schemeYlGnBu[k] discrete scheme

schemeYlGnBu[k] is an array of arrays of hexadecimal color strings representing the YlGnBu discrete sequential color scheme. The size k ranges from 3 to 9.

schemeYlGn[k] discrete scheme

schemeYlGn[k] is an array of arrays of hexadecimal color strings representing the YlGn discrete sequential color scheme. The size k ranges from 3 to 9.

schemeYlOrBr[k] discrete scheme

schemeYlOrBr[k] is an array of arrays of hexadecimal color strings representing the YlOrBr discrete sequential color scheme. The size k ranges from 3 to 9.

schemeYlOrRd[k] discrete scheme

schemeYlOrRd[k] is an array of arrays of hexadecimal color strings representing the YlOrRd discrete sequential color scheme. The size k ranges from 3 to 9.

Create sequential discrete scale example

const color = d3.scaleOrdinal(d3.schemeBlues[9]);

Create sequential continuous scale example

const color = d3.scaleSequential(d3.interpolateBlues);

Give your agent this brain