Skip to main content

ColorGradient

Complete API reference for ColorGradient, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Vector

Component: no


public class ColorGradient

Constructors

SignatureDescription
ColorGradient(Gradient)Executes ColorGradient and returns after the underlying engine call finishes.
ColorGradient()Executes ColorGradient and returns after the underlying engine call finishes.

Attributes

NameTypeDescription
instanceGradientRepresents the instance value stored on this instance. Read or assign to update the property.

Methods

SignatureReturnsDescription
addPoint(float, Color)ColorGradient.PointAdds point to the collection.
removePointAt(int)voidRemoves point at from the collection.
pointAt(int)PointPerforms the pointAt operation using the provided parameters (idx).
clear()voidClears or resets the object's state.
pointsCount()intExecutes pointsCount and returns after the underlying engine call finishes.
evaluate(float)ColorPerforms the evaluate operation using the provided parameters (location).
toJson()StringExecutes toJson and returns after the underlying engine call finishes.
fromJson(String)ColorGradientPerforms the fromJson operation using the provided parameters (json).

Static Methods

SignatureReturnsDescription
genericInterface()GenericClassInspectorEntryExecutes genericInterface and returns after the underlying engine call finishes.
inspectorController()ClassInspectorEntryExecutes inspectorController and returns after the underlying engine call finishes.