API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
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.
Constructors 1
new(stops: readonly GradientStop[], center: readonly [number, number], radius: number): RadialGradient Methods 10
_copyGeometry(source: RadialGradient): void _geometryEquals(other: Gradient): boolean clone(): this copy(source: this): this destroy(): void equals(other: Gradient): boolean resolveT(u: number, v: number): number sampleAt(t: number, out: Float32Array): void toTexture(width: number, height: number, options?: GradientToTextureOptions & object): DataTexture<"rgba8"> toTexture(width: number, height: number, options: GradientToTextureOptions & object): DataTexture<"rgba32f"> Properties 4
type: GradientType center: readonly [number, number] radius: number stops: readonly GradientStop[] Source