Ets_Gui_Color_From_HLS()

Note: Requires OPNET Development Kit

Abstract

Returns a color from an HLS specification.

Syntax

Ets_Gui_Color_From_HLS (hue, lightness, saturation)
Argument Type Description
hue double Hue, from 0.0 to 1.0 (see Details).
lightness double Lightness, from 0.0 (black) to 1.0 (white).
saturation double Saturation, from 0.0 (unsaturated) to 1.0 (most saturated).

Return Type

EtsT_Color

The requested color.

ets_api_gui.h

Details

This function creates a color definition from an HLS (hue, lightness, saturation) specification. The color can be used by any function requiring an EtsT_Color argument.

The hue value is a point on a continuous color wheel, where 0.0 and 1.0 both represent pure red, 1/3 (0.333…) represents pure green, and 2/3 (0.666…) represents pure blue.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com