sloshgen 0.1.0 copy "sloshgen: ^0.1.0" to clipboard
sloshgen: ^0.1.0 copied to clipboard

Offline Dart generator for baked 2D liquid animations, with waves, sticky wall droplets, shaking, split and merge effects, fixed contours, and GIF export.

example/sloshgen_example.dart

import 'dart:io';
import 'package:sloshgen/sloshgen.dart';

/// Bake the bundled recipe into an asset in the current directory.
void main(List<String> args) {
  final recipe = File.fromUri(Platform.script.resolve('recipe.json'));
  final output = args.isEmpty ? 'water.slosh.json' : args.single;
  generateFile(recipe.path, outputPath: output);
  stdout.writeln('Generated $output.');
}
0
likes
160
points
158
downloads

Documentation

API reference

Publisher

verified publisherpathverse.ca

Weekly Downloads

Offline Dart generator for baked 2D liquid animations, with waves, sticky wall droplets, shaking, split and merge effects, fixed contours, and GIF export.

Repository (GitHub)
View/report issues

Topics

#animation #liquid #codegen #cli #simulation

License

MIT (license)

Dependencies

image, xml

More

Packages that depend on sloshgen