Issues.00590 - lordmundi/wikidoctest GitHub Wiki

00590: add ability to scale a color channel in a canvas

« 00589 | Issues | 00591 »

Summary: add ability to scale a color channel in a canvas

Created: 2017–01–26 11:09

Status: Released

Category: Request

From: frankie

Version: 2.3

Released_In: 2.4

Description:

Similar to issue 00413, this is a request to be able to scale the rgb channels for a canvas in the dsp_canvas/dsp_drawcanvas plugins.


Comments

frankie January 26, 2017, at 11:12 AM: This has been added. Syntax is similar to speedtest, although it is done on a creation or configuration of a canvas. For example, for a canvas called "cw_canvas" you could use the following to disable the red channel:

cw_canvas configure -rgb_gain 0.0 1.0 1.0

Similarly, to query the canvas for the current gains, run the same command without the arguments present:

set current_rgb_gain [cw_canvas configure -rgb_gain]

« 00589 | Issues | 00591 »

Associated Commits

| commit | a33862a4df567a9002f4eda828857de58e4ecb6b link5 | || | Author: | Frank Graffagnino | | Date: | Thu Jan 26 11:13:09 2017 -0600 | | Message: | [@Issue 00590: Added capability to scale color channels to canvas plugins The default gains are 1.0, 1.0, 1.0 as expected. You can change the gains as follows: <canvas_name> configure -rgb_gain 0.0 1.0 1.0 The above name would disable the red channel for that canvas. Similarly, running without the 3 numerical arugments will return the rgb_gain for that canvas. @] |

Affected Files:

src/plugins/dsp_canvas.c     | 22 ++++++++++++++++++++++
 src/plugins/dsp_canvas.h     |  1 +
 src/plugins/dsp_drawcanvas.c | 43 +++++++++++++++++++++++++&plusmn;----------------
 3 files changed, 49 insertions(+), 17 deletions(-)