API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classLinearGradient
@codexo/exojs / rendering / stable
Linear gradient in UV space projected from `start` to `end`.
4
props
10
methods
0
events
Import
import { LinearGradient } from '@codexo/exojs' Linear gradient in UV space projected from `start` to `end`.
Constructors 1
new(stops: readonly GradientStop[], start: readonly [number, number], end: readonly [number, number]): LinearGradient Methods 10
_copyGeometry(source: LinearGradient): 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 end: readonly [number, number] start: readonly [number, number] stops: readonly GradientStop[] Source