MetaballWaveShape class
A gooey crest made of blobCount evenly-spaced blobs that drift with the motion phase. Each blob is a Gaussian bump of the given radius; blobs are combined with a smooth union so nearby blobs merge into one bulge peaking at amplitude, while distant blobs stay separate.
Constructors
- MetaballWaveShape({required int blobCount, required double amplitude, double radius = 0.12, double baseline = 0.5})
-
const
Properties
- amplitude → double
-
final
- baseline → double
-
The normalized vertical anchor of the crest line,
[0, 1].final - blobCount → int
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- radius → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sampleAt(
double x, double phase) → double -
Sample the surface height (in amplitude units) at normalized
xin[0, 1]with the givenphasein radians. This is the crest offset only; vertical placement is carried separately by baseline.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override