Hacker News | 📄 原文链接 | 2026-11-02 收录

十三年后重写:phoria2 把 canvas 3D 搬到 WebGL 2

来源:kevs3d.co.uk — 2026-10-31

📋 概述

phoria2 是 Kevin Roast 对 2013 年 canvas 2D 时代 3D 库 phoria.js 的重写,改用 WebGL 2 渲染器,定位是小而快的网页 3D 库:图表、带标签的场景、仪表盘与产品查看器。API 一下午能学会,且从设计之初就考虑了让智能体也能用:每个选项都做校验,写错会返回带修复建议的错误。无运行时依赖、纯 ES 模块、只在数据变化时重绘。

🔑 核心要点

💡 金句

A rewrite of phoria.js, a JavaScript library from 2013 that rendered 3D onto the canvas 2D context. Back when we were still wizards.
← 返回 Hacker News 首页