Platform
Resources
Pricing
Sign in
Get started
K Lindberg
I like AR & Audio :) If Tesla was right about energy and vibration; a Fourier Series makes sine waves and Pi Fractals extra interesting
Workspace
Fork
Public
By
K Lindberg
Edited
May 20, 2018
Fork of
Sinebow
Insert cell
Insert cell
Insert cell
function
interpolateSinebow
(
t
)
{
return
t
=
0.5
-
t
,
d3
.
rgb
(
255
*
Math
.
sin
(
Math
.
PI
*
(
t
+
0
/
3
)
)
**
2
,
255
*
Math
.
sin
(
Math
.
PI
*
(
t
+
1
/
3
)
)
**
2
,
255
*
Math
.
sin
(
Math
.
PI
*
(
t
+
2
/
3
)
)
**
2
)
;
}
Insert cell
Insert cell
Insert cell
function
interpolateRainbow
(
t
)
{
return
t
=
(
t
+
0.2
)
%
1
,
d3
.
cubehelix
(
360
*
t
-
100
,
1.5
-
1.5
*
Math
.
abs
(
t
-
0.5
)
,
0.8
-
0.9
*
Math
.
abs
(
t
-
0.5
)
)
;
}
Insert cell
Insert cell
Insert cell
function
interpolateAngry
(
t
)
{
return
d3
.
hsl
(
t
*
360
,
1
,
0.5
)
;
}
Insert cell
Insert cell
Insert cell
Insert cell
chartRgb
(
interpolateSinebow
)
Insert cell
chartRgb
(
interpolateRainbow
)
Insert cell
chartRgb
(
interpolateAngry
)
Insert cell
Insert cell
chartL
(
interpolateSinebow
)
Insert cell
chartL
(
interpolateRainbow
)
Insert cell
chartL
(
interpolateAngry
)
Insert cell
Insert cell
chartDifference
(
interpolateSinebow
)
Insert cell
chartDifference
(
interpolateRainbow
)
Insert cell
chartDifference
(
interpolateAngry
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
interpolateSinebow
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
interpolateRainbow
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
interpolateAngry
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
chartRgb
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
chartL
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
chartDifference
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
rampNamed
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
d3
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML