 
    
Color Constant
Outputs a vector of RGB color values.
Library
MATLAB Command Line
Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:
qc_open_library('quarc_library/Sources/Signals')Description
         
    
The Color Constant block outputs a 3-vector of RGB color values, where each color component lies in the range 0 to 1, inclusive. The order of the color components in the 3-vector are [red, green, blue]. This block is convenient for specifying colors because it supports using a color picker to select the desired color.
Input Ports
This block has no input ports.
Output Ports
rgb
Parameters and Dialog Box
         
    
Color (tunable online)
The RGB colour value as a 3-vector. Each element must lie in the range 0 to 1. The order of the elements is [red, green, blue]. Use the browse button next to this parameter to select a color using a color picker.
Targets
| Target Name | Compatible* | Model Referencing | Comments | 
|---|---|---|---|
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | ||
| Yes | Yes | Last fully supported in QUARC 2018. | |
| Rapid Simulation (RSIM) Target | Yes | Yes | |
| S-Function Target | No | N/A | Old technology. Use model referencing instead. | 
| Normal simulation | Yes | Yes | 
         
    
Copyright ©2025 Quanser Inc. This page was generated 2025-06-17. "
                Submit feedback to Quanser about this page.
Link to this page.