sloshgen 0.1.0
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.
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.');
}