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

插件详情v0.2.0

flutter_processing

Processing 的 Flutter 版本。

AndroidiOSmacOSWindowsLinux
近 30 天下载
107
喜欢数
70
Pub 分数
120

安装插件

flutter pub add flutter_processing

插件介绍

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

Flutter Processing 是一个 Flutter 包,将 Processing 的创意编程功能带到了 Flutter 应用中。它使开发者能够在 Flutter 的跨平台框架内,使用熟悉的 Processing 类语法创建交互式图形、动画和视觉艺术。非常适合对生成艺术感兴趣的艺术家、教育工作者和开发者,支持在 Android、iOS、macOS、Windows 和 Linux 上进行实时绘图和动画。该包与 Flutter 的小部件系统无缝集成,同时提供对底层画布操作的访问。

适合场景

  • 生成艺术应用
  • 交互式可视化
  • 教育类编程项目
  • 创意编程原型
  • 实时动画演示

主要特点

  • 处理样式语法
  • 跨平台画布渲染
  • 实时动画支持
  • 与 Flutter 小部件的集成
  • 支持触摸和鼠标输入

适合对象

  • 创意编码者
  • 使用代码的艺术家
  • 教授编程的教育工作者
  • 开发视觉应用的开发者
  • 学习交互设计的学生

使用建议

  • 性能在低端设备上可能有所不同
  • 需要了解 Processing 概念
  • 与主 Processing 相比,文档有限
  • 不适合复杂的UI
  • 最适合图形密集型而非数据驱动的应用程序

原始 README

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

Flutter Processing

A Flutter port of Processing.

This project is not affiliated with the Processing project, or related organizations.

The goal of flutter_processing is to provide the same easy learning environment as Processing, but with the additional utility of a production-ready UI toolkit, called Flutter. With traditional Processing, there is minimal professional value in the underlying language. With flutter_processing, the underlying tool, Flutter, is sufficient for employment as an app UI developer. flutter_processing offers an educational tool and an employment opportunity all in one.

Want to see how this project was implemented? Nearly every change was recorded and published to the SuperDeclarative! channel on YouTube.

To see which Processing APIs have been ported to Flutter, see the API Checklist.


Do you get value from this package? Please consider supporting SuperDeclarative!


Getting Started

To play with some demos, clone this repository and run the example app!

To paint a canvas with a sketch in Flutter, the way you would in Processing, display a Processing widget and implement a Sketch.

void main() {
  runApp(
    MaterialApp(
      home: Processing(
        sketch: Sketch.simple(
          setup: (sketch) async {
            // TODO: do your typical Sketch setup
            //       stuff here. Call methods on
            //       the provided sketch object.
          },
          draw: (sketch) async {
            // TODO: do your typical Sketch drawing
            //       stuff here. Call methods on
            //       the provided sketch object.
          },
        ),
      ),
    ),
  );
}

To retain and access variables in your Sketch, or to implement a Sketch in a more traditional way, subclass Sketch:

void main() {
  runApp(
    MaterialApp(
      home: Processing(
        sketch: MySketch(),
      ),
    ),
  );
}

class MySketch extends Sketch {
  @override
  Future<void> setup() async {
    // TODO: do setup stuff here
  }

  @override
  Future<void> draw() async {
    // TODO: do drawing stuff here
  }
}

Get Involved

If you create anything cool, be sure to post it to Twitter and tag @SuprDeclarative and @FlutterDev!

If you need something implemented, or you find a bug, please checkout the Contributing Guide and then file an issue in the GitHub project.

所属分类

依赖

依赖清单 3 项

源码仓库

使用此插件的项目

暂无相关数据。