搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。