User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_color.fromhsl_single_single_single

Table of Contents

TGIS_Color.FromHSL method

DK11 for .NET | TatukGIS.NDK.TGIS_Color.FromHSL | Fields | Methods | Properties

Create color from hue, saturation and luminance.

Available also on: Delphi | Java | ActiveX.

Syntax

// C#
public static TGIS_Color FromHSL(
  float _h,
  float _s,
  float _l
);
' VisualBasic
Public Shared Function FromHSL(
  ByVal _h As Single,
  ByVal _s As Single,
  ByVal _l As Single
) As TGIS_Color
// Oxygene
public
  class function FromHSL(
    _h : Single;
    _s : Single;
    _l : Single
  ) : TGIS_Color;

Parameters

Name Type Description
_h float
Single
hue; expected value: 0..1
_s float
Single
saturation; expected value: 0..1
_l float
Single
luminance; expected value: 0..1

Result

Type Description
TGIS_Color Created color.
2020/05/07 01:19