Transforming Numbers

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

A beginner-friendly walkthrough of how to build a faux-3D spinning carousel using basic arithmetic and trigonometry. Starting from the concept of mapping numbers between ranges, the tutorial progressively builds up: placing icons on a circle using turns and radians, scaling and translating coordinates, handling z-index for

17m read timeFrom beej.us
Post cover image
Table of contents
Mapping!A starting pointMapping: scaling transformsMapping: translating transformsCircles, a catcher-upperMapping to radiansPlotting a circleScrunching the circleZ-OrderPerspectiveBonus: setting opacityBlurringAnimationIn GeneralIn SummaryLicenseComments

Sort: