NormalMapOptions class final

How a normal map is made from a picture.

Constructors

NormalMapOptions({double strength = 2, int bevel = 0, bool tiles = false, bool invert = false})
Options of a plain picture: no rounding, not repeating.
const
NormalMapOptions.sprite({double strength = 2, int bevel = 4, bool invert = false})
For a sprite: rounded edges bevel pixels wide, from where it is clear, and nothing where it is clear.
const
NormalMapOptions.tiling({double strength = 2, bool invert = false})
For a texture that repeats: its edges meet, nothing is clear.
const

Properties

bevel → int
How many pixels in from a clear edge the surface rounds off; 0 for no rounding.
final
hashCode → int
The hash code for this object.
no setterinherited
invert → bool
Whether dark is high (light is high otherwise).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strength → double
How steep the bumps are.
final
tiles → bool
Whether the picture repeats: its left edge meets its right, its top its bottom.
final

Methods

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

Operators

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