Search

Nalezeno "math": 61

Get a Random Array Item with JavaScript


JavaScript Arrays are probably my favorite primitive in JavaScript. You can do all sorts of awesome things with arrays: get unique values, clone them, empty them, etc. What about getting a random value from an array? To get a random item from an array, you can employ Math.random: const arr =...

A Wordle Math Clone Is Rapidly Becoming My Daily Favorite


Like everyone else on planet Earth, I’ve been poking at all manner of Wordle-likes for the last few weeks, yet I’ve found all but one to lack the stickiness of the original. The exception? Nerdle, a game in which you have to guess the basic arithmetic that hides behind those blanks.Read more

Wordle's 'Best' Starting Word Has Been Found, And Ruined, By Math


One of the cutest things about Wordle, and also one of the most important if you value having any kind of success with the game, is the selection of your starting word. For most players this has probably been their own favourite combination of vowels and consonants, but if you really want to...

On Pornhub, Math Teacher Makes His Mark Teaching Calculus


When you think of Pornhub, you probably think of pornography, right? For good reason, the site is wall-to-wall porn. But one math teacher named Changshu noticed something was missing: math. “Since very few people teach math on adult video platforms, and since there are so many people who watch...

Using Absolute Value, Sign, Rounding and Modulo in CSS Today


For quite a while now, the CSS spec has included a lot of really useful mathematical functions, such as trigonometric functions (sin(), cos(), tan(), asin(), acos(), atan(), atan2()), exponential functions (… The post Using Absolute Value, Sign, Rounding and Modulo in CSS Today appeared...

Trigonometry in CSS and JavaScript: Beyond Triangles


Web design is such a rectangle-based design medium that literally any deviation from it feels fresh. Michelle Barker gets into using math in various ways to programmatically draw lines, shapes, and animations that end up looking both beautiful and have … The post Trigonometry in CSS...

Designing calculator apps


It is extremely weird that the calculator apps, even the default ones baked into desktop operating systems, embrace the UI and UX of those little cheap-o plastic physical calculators. I like what Florens Verschelde’s Math teacher had to say: I … The post Designing calculator apps...

Recipe websites, data modeling, and user experience


Simeon Griggs with some nice UX ideas for a recipe website: No math. Swap between units and adjust servings on-the-fly. Offer alternative ingredients. Re-list the ingredient amounts when they’re referenced in the instructions. I totally agree, especially on that last … The post...

Lots of Ways to Use Math.random() in JavaScript


Math.random() is an API in JavaScript. It is a function that gives you a random number. The number returned will be between 0 (inclusive, as in, it’s possible for an actual 0 to be returned) and 1 (exclusive, as in, it’s not possible for an actual 1 to be returned). Math.random(); // returns...

Gray Burst


I made this neat little gray burst thing. It’s nothing particularly special, especially compared to the amazing creativity on CodePen, but I figured I could document some of the things happening in it for learning reasons. CodePen Embed Fallback It’s SVG SVG has <line x1 y1...

FLETACHAIN Announces Strategic Partnership with Math Wallet


Decentralized applications infrastructure network FLETACHAIN has announced a strategic partnership with Math Wallet, a Singapore based crypto wallet, for the use of FLETA tokens. The partnership will cater to users across the globe who are looking for a crypto wallet with decent services and robust...

Warp SVG Online


The warping is certainly the cool part here. Some fancy math literally transforms the path data to do the warping. But the UX detail work here is just as nice. Scrolling the page zooms in and out via a transform: scale() on the SVG wrapper (clever!). Likewise, holding the spacebar lets you...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace