Forums > Dev

'Extend' feature for patterns ?


Oct 14 2009 | 11:41 pm

Hi C74,

I am playing around with linear gradients in the JGraphics API.
Every attempt of using the function jgraphics_pattern_set_extend() with its different flags (JGRAPHICS_EXTEND_NONE, JGRAPHICS_EXTEND_REPEAT, JGRAPHICS_EXTEND_REFLECT, JGRAPHICS_EXTEND_PAD) doesn’t produce any difference in how gradients are generated and displayed.

Is the extend feature supported for linear gradients ?
If so, can someone post some example code on how to use it ?

Many thanks.

– Luigi

Oct 15 2009 | 9:07 pm

Hi Luigi,

I’ve asked around, and it turns out that JUCE doesn’t support these directly and the existence of these in the Max SDK is merely to serve as placeholders.

The next version of the SDK will be documented accordingly.

Sorry to disappoint…

Oct 16 2009 | 1:02 am

Good to know. Thanks.

– Luigi

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > Dev