Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

fc1ab938 f1f5 635e c9c4 edf0fd2dd7d6

haplokuon edited this page May 6, 2023 · 1 revision

ToHsl(AciColor) Method

netDxf 3.0.0 Library

Converts the RGB (red, green, blue) components of an AciColor to HSL (hue, saturation, lightness) values.

Definition

Namespace: netDxf
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public static Vector3 ToHsl(
	AciColor color
)

VB

Public Shared Function ToHsl ( 
	color As AciColor
) As Vector3

C++

public:
static Vector3 ToHsl(
	AciColor^ color
)

F#

static member ToHsl : 
        color : AciColor -> Vector3 

Parameters

  AciColor
A color.

Return Value

Vector3
A Vector3 where the three coordinates x, y, z represents the hue, saturation, and lightness components (output values range from 0 to 1).

See Also

Reference

AciColor Class
ToHsl Overload
netDxf Namespace

Clone this wiki locally