NoisePaint class final

A noise paint's procedural noise, parameterised as SVG's <feTurbulence> (baseFrequency, numOctaves, seed, type): the texture a web page's grain overlay draws (filter: url(#grain)), here a paint, drawn as a seamless tile repeated over the box.

Annotations
  • @immutable

Constructors

NoisePaint({double baseFrequency = 0.8, int numOctaves = 3, int seed = 0, NoiseType type = NoiseType.fractalNoise})
const

Properties

baseFrequency → double
Lattice cells per pixel (feTurbulence baseFrequency): 0.8 is a fine film grain, 0.05 soft clouds.
final
hashCode → int
The hash code for this object.
no setteroverride
numOctaves → int
Octaves summed, each twice the frequency at half the amplitude (1–8).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seed → int
The random seed: the same seed draws the same grain.
final
type → NoiseType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(Object? json) → NoisePaint?