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

GradientGouraud Class

Gouraud mesh colour gradient paint server.

GradientGouraud interpolates colour barycentrically across a caller-supplied mesh of coloured triangles. The mesh is defined by Vertices and optional Indices.

The inherited colour-ramp fields Stops, ColourMap, SpreadMethod and Colour are not supported by this class. Per-vertex colour values are supplied directly through Vertices.

Structure

The GradientGouraud class consists of the following fields:

Access
NameTypeComment
 Indiceskt::vector<int>Defines triangle connectivity for a Gouraud gradient.

The Indices array provides triangle connectivity for a Gouraud gradient's Vertices, with three indices per triangle referencing vertices in counter-clockwise order. Supplying indices allows vertices to be shared between adjacent triangles.

If left empty, the Vertices array is treated as a flat triangle list, where every three consecutive vertices form one triangle.

 Verticeskt::vector<GouraudVertex>Defines the coloured vertices for a Gouraud gradient.

The Vertices array defines the mesh of coloured points across which colour is interpolated barycentrically. Each GouraudVertex carries an (X, Y) position and an FRGB colour.

By default the vertices are treated as a flat triangle list, where every three consecutive vertices form one triangle. Supplying an Indices array instead expresses triangle connectivity explicitly.

The coordinate system for vertex positions is determined by Gradient⇒Units. Under BOUNDING_BOX, a normalised mesh in the range 0 - 1.0 is scaled into the target path's bounds. Under USERSPACE, the positions are taken directly in the viewport's coordinate space.

GradientGouraud class documentation © Paul Manias © 2010-2026

GouraudVertex Structure

Describes a coloured vertex for the GradientGouraud Vertices field.

FieldTypeDescription
XDOUBLEThe X coordinate of the vertex.
YDOUBLEThe Y coordinate of the vertex.
Colourstruct FRGBThe floating point RGB colour assigned to this vertex.
GradientGouraud class documentation © Paul Manias © 2010-2026