Platform
Solutions
Resources
Pricing
Sign in
Sign up
Chris Ried
Creative Technologist, Data Scientist, Generative Artist (generatecoll)
Workspace
Fork
Public
Genuary 2023
By
Chris Ried
Edited
Feb 15, 2023
ISC
3 stars
Insert cell
Insert cell
viewof
form
=
Inputs
.
form
(
{
width
:
Inputs
.
range
(
[
0
,
1000
]
,
{
label
:
"Width"
,
step
:
1
,
value
:
1000
}
)
,
height
:
Inputs
.
range
(
[
0
,
1000
]
,
{
label
:
"Height"
,
step
:
1
,
value
:
1000
}
)
}
)
Insert cell
Insert cell
GlitchRect
=
(
x
,
y
,
h
,
w
,
n
)
=>
{
return
{
x
:
x
,
y
:
y
,
h
:
h
,
w
:
w
,
n
:
n
,
hdiff
:
h
/
n
,
ratei
:
R
(
0.01
,
0.1
)
,
clr
:
getColor
(
)
,
clr1
:
getColor
(
)
,
clr2
:
getColor
(
)
,
start
:
R
(
0
,
0.02
)
,
glide
:
R
(
5
,
20
)
}
;
}
Insert cell
Insert cell
Insert cell
Insert cell
R
=
(
min
,
max
)
=>
min
+
Math
.
random
(
)
*
(
max
-
min
)
Insert cell
W
=
form
.
width
Insert cell
H
=
form
.
height
Insert cell
import
{
p5
}
from
"@tmcw/p5"
Insert cell
One platform
to build and deploy the best data apps
Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
form
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
GlitchRect
Unpin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
getColor
Edit
Pin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
getRandomInt
Edit
Pin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
R
Unpin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
W
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
H
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
JavaScript
Markdown
HTML
JavaScript
Markdown
HTML