2D SDF Functions in JavaScript | Austin Whittier | Observable
ojs
ojs
ojs
ojs
ojs
ojs
Author
Austin Whittier
@awhitty
Comments (1)
Sven Helmberger
Oct 13, 2025
Think of the "box" as a thick line. a is the starting point, b is the end point and th is the thickness parameter of the line. The line will extend th/2 to both sides of line a to b.
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Public
Forum
Bluesky
YouTube
X
Observable
Sign up
Austin Whittier
3
Reply
Add comment
Subscribe to notifications
0
2D SDF Functions in JavaScript | Austin Whittier | Observable