FlatLightDslReceiver

This Interface contains all the functions that will be exposed to Koltin DSL.

Separated the DSL receiver class to this interface to avoid IDE code suggestion for property getters.

Functions

Link copied to clipboard
abstract fun anchor(anchor: Expression): FlatLight
abstract fun anchor(anchor: Anchor = Anchor.VIEWPORT): FlatLight

Whether extruded geometries are lit relative to the map or viewport.

Link copied to clipboard
abstract fun color(color: Expression): FlatLight
abstract fun color(@ColorInt color: Int): FlatLight
abstract fun color(color: String = "#ffffff"): FlatLight

Color tint for lighting extruded geometries.

Link copied to clipboard
abstract fun colorTransition(options: StyleTransition): FlatLight

Set the Color property transition options.

Link copied to clipboard
abstract fun intensity(intensity: Expression): FlatLight
abstract fun intensity(intensity: Double = 0.5): FlatLight

Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.

Link copied to clipboard

Set the Intensity property transition options.

Link copied to clipboard
abstract fun position(position: Expression): FlatLight
abstract fun position(position: LightPosition = LightPosition(1.15, 210.0, 30.0)): FlatLight
abstract fun position(radialCoordinate: Double, azimuthalAngle: Double, polarAngle: Double): FlatLight

Position of the light source relative to lit (extruded) geometries, in r radial coordinate, a azimuthal angle, p polar angle where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0 degree (0 degree when light.anchor is set to viewport corresponds to the top of the viewport, or 0 degree when light.anchor is set to map corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0 degree, directly above, to 180 degree, directly below).

Link copied to clipboard

Set the Position property transition options.

Inheritors

Link copied to clipboard