mirage

Last updated:

0 purchases

mirage Image
mirage Images
Add to Cart

Description:

mirage

Mirage #
Generates noise and patterns algorithmically for use in software, textures, and graphics.





Usage #
An example of generating a Simplex noise pattern:

import 'package:mirage/mirage.dart';

void main() {
final noise = Simplex();
for (var y = 0; y < 256; y++) {
for (var x = 0; x < 256; x++) {
final value = noise.get2d(x, y);
// Do something with the value...
}
}
}
copied to clipboard
For a full example, see the example directory.
Features #

Full implementations of popular 2D noise functions.
Simple and predictable API for generating noise patterns.
Build your own generator functions with the Pattern2d interface.
Thoughtfully tested and documented for ease of use.

Contributing #
To run the tests, run:
dart test
copied to clipboard
To check code coverage locally, run:
./chore coverage
copied to clipboard
To preview dartdoc output locally, run:
./chore dartodc
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.