- This wiki is out of date, use the continuation of this wiki instead
Blendop grayscale
From FenixWiki
(Difference between revisions)
Revision as of 12:13, 17 January 2008 (edit) Sandman (Talk | contribs) (New page: Category:functions Category:Blendops ==Definition== '''INT''' blendop_grayscale ( <'''INT''' blendopID> , <'''INT''' mode> ) Modify the blend table of the blend operation...) ← Previous diff |
Revision as of 23:07, 17 January 2008 (edit) (undo) Sandman (Talk | contribs) m Next diff → |
||
Line 3: | Line 3: | ||
==Definition== | ==Definition== | ||
- | '''INT''' blendop_grayscale ( <'''INT''' | + | '''INT''' blendop_grayscale ( <'''INT''' blendTable> , <'''INT''' mode> ) |
Modify the [[blend table]] of the [[blend operation]] by modifying the colours, so the compononts of one colour is the same (this makes them appear gray). This means that the [[graphic]] the blend operation is assigned to will appear gray. | Modify the [[blend table]] of the [[blend operation]] by modifying the colours, so the compononts of one colour is the same (this makes them appear gray). This means that the [[graphic]] the blend operation is assigned to will appear gray. | ||
Line 11: | Line 11: | ||
== Parameters == | == Parameters == | ||
{| | {| | ||
- | | '''INT''' | + | | '''INT''' blendTable || - The [[blend table]] to modify. |
|- | |- | ||
| '''FLOAT''' amount || - The mode to perform the grayscaling (see [[#Notes|notes]]). | | '''FLOAT''' amount || - The mode to perform the grayscaling (see [[#Notes|notes]]). |
Revision as of 23:07, 17 January 2008
Definition
INT blendop_grayscale ( <INT blendTable> , <INT mode> )
Modify the blend table of the blend operation by modifying the colours, so the compononts of one colour is the same (this makes them appear gray). This means that the graphic the blend operation is assigned to will appear gray.
The source section of the blend table will be modified; this will clear the destination section of the blend table.
Parameters
INT blendTable | - The blend table to modify. |
FLOAT amount | - The mode to perform the grayscaling (see notes). |
Returns
INT : true
Blendops Functions | |
• Blendop_apply() • Blendop_assign() • Blendop_free() • Blendop_grayscale() • Blendop_identity() • Blendop_intensity() • Blendop_new() • Blendop_swap() • Blendop_tint() • Blendop_translucency() • |