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-scale-chromatic

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

d3-scale-chromatic module purpose

The d3-scale-chromatic module provides sequential, diverging, and categorical color schemes designed to work with d3-scale's d3.scaleOrdinal and d3.scaleSequential. Most schemes are derived from Cynthia A. Brewer's ColorBrewer. Since ColorBrewer publishes only discrete color schemes, the sequential and diverging scales are interpolated using uniform B-splines.

d3-scale-chromatic scheme types

The d3-scale-chromatic module provides four types of color schemes: categorical schemes, cyclical schemes, diverging schemes, and sequential schemes.

d3.scaleSequential with rainbow color scheme

To create a cyclical continuous color scale using the Rainbow color scheme, use d3.scaleSequential(d3.interpolateRainbow).

interpolateRainbow signature and behavior

d3.interpolateRainbow(t) accepts a number t in the range [0,1] and returns the corresponding color from the cyclical rainbow color scheme. It implements the less-angry rainbow by composing d3.interpolateWarm from [0.0, 0.5] and d3.interpolateCool from [0.5, 1.0].

interpolateSinebow signature and behavior

d3.interpolateSinebow(t) accepts a number t in the range [0,1] and returns the corresponding color from the sinebow color scheme. This scheme was created by Jim Bumgardner and Charlie Loyd.

Give your agent this brain