GlobeDayNightLayer class

Renders a simulated day/night solar terminator shadow across the globe.

Inheritance

Constructors

GlobeDayNightLayer({bool enabled = true, int zIndex = 8, Vector3D sunDirection = const Vector3D(1.0, 0.2, 0.6), double nightOpacity = 0.6, Color nightColor = const Color(0xFF020408)})
Creates illustrative shading from a supplied sun direction, not a solar ephemeris.
const

Properties

enabled → bool
Whether this layer is rendered.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
nightColor → Color
Base tint color of the night shadow.
final
nightOpacity → double
Darkness opacity of the night side.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sunDirection → Vector3D
3D directional vector pointing towards the sun.
final
zIndex → int
Rendering order priority (lower zIndex paints first).
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(GlobeRenderContext context) → void
Paints the layer contents onto the canvas.
override
toString() → String
A string representation of this object.
inherited

Operators

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