API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classRadialGradient

@codexo/exojs / rendering / stable

Radial gradient in UV space around `center` with normalized radius.

4
props
10
methods
0
events
Import
import { RadialGradient } from '@codexo/exojs'

Radial gradient in UV space around `center` with normalized radius.

Constructors1
new(stops: readonly GradientStop[], center: readonly [number, number], radius: number): RadialGradient
Methods10
_copyGeometry(source: RadialGradient): void
Copy the concrete subclass geometry from a same-type source.
Compare the concrete subclass geometry against other. Only invoked once Gradient.equals has confirmed both sides share the same GradientType, so implementations may narrow other accordingly.
clone(): this
Deep-clone into a new instance of the same concrete gradient type.
copy(source: this): this
Copy every value (stops and geometry) from a same-type source into this instance, replacing its current state. Returns this for chaining.
destroy(): void
Structural value equality: same GradientType, same ordered stops (offset and Color), and same subclass geometry.
resolveT(u: number, v: number): number
sampleAt(t: number, out: Float32Array): void
Shared stop sampling logic ported from the legacy GLSL implementation.
Properties4
Concrete gradient kind, e.g. 'linear' or 'radial'.
center: readonly [number, number]
Gradient center in UV space.
radius: number
Normalized radius (UV units, clamped to be non-negative).
stops: readonly GradientStop[]
Source