搜索插件、代码仓与 APP 分类

插件详情v2.3.2

stagexl

一个快速且通用的 HTML5 和 Dart 2D 渲染引擎。

Web
近 30 天下载
271
喜欢数
40
Pub 分数
125

安装插件

flutter pub add stagexl

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

StageXL 是一个专为使用 Dart 和 HTML5 的 Web 应用程序设计的高性能 2D 渲染引擎。它提供了一个灵活的基于舞台的架构,非常适合创建交互式图形、动画和游戏。该引擎注重效率,支持矢量图形、位图处理、文本渲染以及滤镜和着色器等高级效果。其 API 受 Flash/ActionScript 启发,使具有该生态系统开发经验的开发者感到熟悉。该引擎完全在浏览器中运行,利用 WebGL 和 Canvas 实现最佳性能。

适合场景

  • 2D游戏开发
  • 交互式网络动画
  • 矢量图形渲染
  • 基于浏览器的可视化应用
  • 实时图形效果

主要特点

  • 高性能渲染
  • WebGL 和 Canvas 支持
  • 类似 Flash 的 API
  • 矢量和位图图形
  • 内置动画系统
  • 着色器和滤镜支持

适合对象

  • 面向网络平台的 Dart 开发人员
  • 寻求轻量级2D引擎的游戏创作者
  • 交互式UI设计工具
  • 教育或原型设计项目

使用建议

  • 有限的原生移动支持
  • 无 Flutter 桌面或移动集成
  • 主要面向网络
  • 需要理解二维图形概念
  • 不像其他Flutter包那样积极维护

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

StageXL

StageXL is a fast and universal 2D rendering engine for HTML5 and Dart. It provides a wide range of features for 2D games and other graphically rich content. The WebGL based engine is highly optimized to reduce the number of draw calls sent to the GPU and therefore delivers top-class performance. The automatic fallback to a Canvas2D based engine guarantees compatibility with older browsers or legacy hardware.

Some of the features provided by StageXL are: texture atlas support, draw call batching, pixel masking, pixel filters, pixel blending, texture filtering, hierarchical display list, sprite sheet animations, rich animation framework, audio and video support, interaction events, 3D transformations of 2D objects, resource management, text rendering and many other features as well as extensibility for even more features.

Extension Libraries

StageXL provides a rich set of built-in features. Even more advanced use cases may require an extension library with a specialised set of features. The number of extension libraries is growing over time, here is a list of the most popular StageXL extension libraries.

Getting Help

The easiest way to get started or to accomplish a task is to ask questions. We are actively tracking the following websites and answer questions as fast as possible. We would like to get more FAQs on StackOverflow to help other developers to find answers quickly, therefore it would be great to get your questions on StackOverflow.

Examples

We are working on more examples to covering a wider range of use cases. Please take a look at the StageXL samples repository for our ongoing work. Don't hesitate to send example requests that would help you to learn about a particular feature.

Support StageXL

We encourage anyone to send in Pull Requests or issues that they find. We do our best to look at them as soon as we can.

Roadmap

Besides improving our existing features and improving performance as much as possible, we are always thinking about new features we want to add next. Please send us your ideas and requests to make those things a reality you care about most. Some of the things we will tackle in the near future are:

  • Support for Flutter (This is happening on a separate repo)
  • A new StageXL homepage with more articles / blog posts.
  • Changing functions from positional parameters to named parameters.
  • Adding ability use Web Workers.

Adobe Flash heritage

StageXL started as an easy migration path for Adobe Flash developers and their products to HTML5. Therefore StageXL provides the same display list API you may have used in Flash for many years. Furthermore the Dart programming language is easy to use for everyone who is familiar with ActionScript.

Browser Support

Chrome Safari Firefox Edge
v53+ v10+ v63+ v79+

Some features only work on newer browsers such as WebGL, but we intend to have fallbacks for most features.

所属分类

依赖

依赖清单 3 项

源码仓库

使用此插件的项目

暂无相关数据。