Flutter Processing는 Flutter 애플리케이션에 Processing의 창의적 코딩 기능을 가져오는 Flutter 패키지입니다. 개발자들이 Flutter의 크로스플랫폼 프레임워크 내에서 익숙한 Processing 유사 구문을 사용하여 인터랙티브 그래픽, 애니메이션 및 시각 예술을 만들 수 있게 해줍니다. 생성 예술에 관심 있는 아티스트, 교육자 및 개발자에게 이상적이며, 안드로이드, iOS, macOS, Windows 및 리눅스에서 실시간 드로잉과 애니메이션을 지원합니다. 이 패키지는 Flutter의 위젯 시스템과 원활하게 통합되며, 저수준 캔버스 작업에 대한 접근도 제공합니다.
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.
voidmain() {
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:
voidmain() {
runApp(
MaterialApp(
home: Processing(
sketch: MySketch(),
),
),
);
}
classMySketchextendsSketch{
@overrideFuture<void> setup() async {
// TODO: do setup stuff here
}
@overrideFuture<void> draw() async {
// TODO: do drawing stuff here
}
}