Frontend
How to draw any regular shape with just one JavaScript function
MDN Blog0 views

Learn how to use JavaScript to draw any regular shape to a HTML canvas with a single function, and how to modify it to draw multiple shapes.
Source:https://developer.mozilla.org/en-US/blog/javascript-shape-drawing-function/PreviousMDN doc updates: CSS selectors & media queries, WebGPU & WebTransport APIs, Progressive web appsNextNew reference pages on MDN for JavaScript regular expressions
Related posts
More than a Manipulator: Planning Propellant-Free Attitude Maneuvers for Free-Floating Spacecraft
0arXiv cs.RO
MiniMax H3 Acceleration in ComfyUI: Eleven Graphs Across Model Tier, LoRA, Attention and Cache
0dev.to AI
Goodbye :nth-child! How Modern CSS sibling-index() Works Under the Hood
0dev.to CSS
Fluid sizes with CSS clamp(): practical examples you can copy
0dev.to CSS
Next.js robots.txt: Why You Shouldn't Block /_next/
0dev.to React

React vs Vue en 2026 : versions, code comparé, performances et grille de choix
0dev.to React