Kōtuku
  • Gallery
  • API
  • Wiki
  • GitHub
    • Audio
    • Config
    • Core
    • Display
    • Document
    • Font
    • HTTP
    • Network
    • Regex
    • SVG
    • Tiri
    • Vector
    • XML
    • XQuery
    • XRandR
      • Audio
      • MP3
      • Sound
      • File
      • MetaClass
      • Module
      • StorageDevice
      • Task
      • Thread
      • Time
      • Compression
      • CompressedStream
      • Config
      • LZMAStream
      • Script
      • Tiri
      • XML
      • XQuery
      • Controller
      • BlurFX
      • ColourFX
      • CompositeFX
      • ConvolveFX
      • DisplacementFX
      • FilterEffect
      • FloodFX
      • ImageFX
      • LightingFX
      • MergeFX
      • MorphologyFX
      • OffsetFX
      • RemapFX
      • SourceFX
      • TurbulenceFX
      • WaveFunctionFX
      • Scintilla
      • Bitmap
      • Clipboard
      • Display
      • Document
      • Font
      • Image
      • Pointer
      • Surface
      • SVG
      • ClientSocket
      • HTTP
      • NetClient
      • NetLookup
      • NetServer
      • NetSocket
      • Proxy
      • Gradient
      • GradientConic
      • GradientContour
      • GradientDiamond
      • GradientDiffusion
      • GradientDistal
      • GradientGouraud
      • GradientLinear
      • GradientMesh
      • GradientRadial
      • GradientVoronoi
      • Vector
      • VectorClip
      • VectorColour
      • VectorEllipse
      • VectorFilter
      • VectorGradient
      • VectorGroup
      • VectorImage
      • VectorPath
      • VectorPattern
      • VectorPolygon
      • VectorRectangle
      • VectorScene
      • VectorShape
      • VectorSpiral
      • VectorText
      • VectorTransition
      • VectorViewport
      • VectorWave
      • Linux Builds
      • Windows Builds
      • Customising Your Build
      • Kōtuku Objects
      • Kōtuku In Depth
      • Kōtuku Design Patterns
      • Coding With AI
      • Regex Manual
      • XML Comparisons
      • Tiri Reference Manual
      • Config API
      • Defer Syntax
      • GUI API
      • HTTP Server API
      • I/O API
      • JSON API
      • OAuth API
      • Options API
      • Proxy Server API
      • Tempus API
      • URL API
      • VFX API
      • Widgets
      • RIPL Reference Manual
      • Origo
      • Flute / Unit Testing
      • Tuku
      • Embedded Document Format
      • TDL Reference Manual
      • TDL Tools
      • Action Reference Manual
      • System Error Codes

GradientLinear Class

Linear colour gradient paint server.

GradientLinear draws a colour ramp along the line defined by (X1, Y1) and (X2, Y2). The object must be registered with a VectorScene via VectorScene⇒AddDef() before it can be referenced by vector fill or stroke attributes.

Structure

The GradientLinear class consists of the following fields:

Access
NameTypeComment
 X1UNITInitial X coordinate for the gradient.

The (X1, Y1) field values define the starting coordinate for mapping linear gradients. Coordinate values can be expressed as units that are scaled to the target space.

 X2UNITFinal X coordinate for the gradient.

The (X2, Y2) field values define the end coordinate for mapping linear gradients. Coordinate values can be expressed as units that are scaled to the target space.

 XMLDefSTRINGReturns an SVG compliant XML string that describes the effect.
 Y1UNITInitial Y coordinate for the gradient.

The (X1, Y1) field values define the starting coordinate for mapping linear gradients. Coordinate values can be expressed as units that are scaled to the target space.

 Y2UNITFinal Y coordinate for the gradient.

The (X2, Y2) field values define the end coordinate for mapping linear gradients. Coordinate values can be expressed as units that are scaled to the target space.

GradientLinear class documentation © Paul Manias © 2010-2026