TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Thinking like a Bézier path

38 pointsby shravanover 10 years ago

4 comments

gilgoomeshover 10 years ago
In case you didn&#x27;t realize the coolest part of this post: mouse over the lines of code that draw the béziers. The diagrams showing béziers drawn by the code update as you mouse over each line.<p>A few of the bézier diagrams with visible control points are interactive too.
abmussaniover 10 years ago
Few weeks ago, I tried to create a roulette wheel for an iOS application. For ball animation, I used CGPath but couldn&#x27;t make a realistic movement then I changed it to UIBezierPath.<p><a href="https://github.com/abmussani/RouletteWheel-for-IPhone-Ipod" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;abmussani&#x2F;RouletteWheel-for-IPhone-Ipod</a> (Sorry for bad code structure).
Vektorwegover 10 years ago
Note: You can&#x27;t draw <i>rounded</i> corners using Bezier curves. Only an approximation. ;)
评论 #8237170 未加载
评论 #8237144 未加载
_Adamover 10 years ago
Images are cutoff when viewed on mobile!