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

7d905fc8 b13d a8b4 fc90 289bf3aeafb6

haplokuon edited this page May 6, 2023 · 1 revision

ToHsl(AciColor, Double, Double, Double) 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 void ToHsl(
	AciColor color,
	out double hue,
	out double saturation,
	out double lightness
)

VB

Public Shared Sub ToHsl ( 
	color As AciColor,
	<OutAttribute> ByRef hue As Double,
	<OutAttribute> ByRef saturation As Double,
	<OutAttribute> ByRef lightness As Double
)

C++

public:
static void ToHsl(
	AciColor^ color, 
	[OutAttribute] double% hue, 
	[OutAttribute] double% saturation, 
	[OutAttribute] double% lightness
)

F#

static member ToHsl : 
        color : AciColor * 
        hue : float byref * 
        saturation : float byref * 
        lightness : float byref -> unit 

Parameters

  AciColor
A color.
  Double
Hue (output values range from 0 to 1).
  Double
Saturation (output values range from 0 to 1).
  Double
Lightness (output values range from 0 to 1).

See Also

Reference

AciColor Class
ToHsl Overload
netDxf Namespace

Clone this wiki locally