Platform
Resources
Pricing
Sign in
Get started
Eric Dobbs
Workspace
Fork
Published
By
Eric Dobbs
Edited
Feb 11, 2018
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function
err
(
x
,
y
,
r
)
{
return
Math
.
abs
(
x
*
x
+
y
*
y
-
r
*
r
)
}
Insert cell
function
*
arc45
(
radius
)
{
var
errX1
,
errX
;
for
(
var
x
=
radius
,
x1
=
x
-
1
,
y
=
0
;
y
<
x
;
// angle is 45 degrees when x and y are equal
x1
=
x
-
1
,
y
++
)
{
errX1
=
err
(
x1
,
y
,
radius
)
,
errX
=
err
(
x
,
y
,
radius
)
;
if
(
errX1
<
errX
)
{
x
=
x1
}
yield
{
x
,
y
,
errX1
,
errX
}
;
}
}
Insert cell
Insert cell
Insert cell
Insert cell
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
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
drawing
Edit
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
err
Unpin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
arc45
Unpin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
radius
Edit
Pin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
pixelSize
Edit
Pin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
xCount
Edit
Pin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
yCount
Edit
Pin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
pixels
Edit
Pin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
width
Edit
Pin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
height
Edit
Pin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
mark
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
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Pin
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
JavaScript
Markdown
HTML