C# 클래스 Sunny.UI.RandomColor

Generates random numbers.
파일 보기 프로젝트 열기: yhuse/SunnyUI

공개 메소드들

메소드 설명
GetColor ( ColorScheme scheme, Luminosity luminosity ) : Color

Gets a new random color.

GetColors ( ) : Color[]

Generate one color for each of the provided generator options.

GetColors ( ColorScheme scheme, Luminosity luminosity, int count ) : Color[]

Generates multiple random colors.

HsvToColor ( int hue, int saturation, double value ) : Color

Converts hue, saturation, and lightness to a color.

Seed ( ) : void

Reseeds the random number generated.

Seed ( int seed ) : void

Reseeds the random number generated.

비공개 메소드들

메소드 설명
DefineColor ( ColorScheme scheme, Array hueRange, ].int[ lowerBounds ) : void
GetColorInfo ( int hue ) : DefinedColor
GetHueRange ( ColorScheme colorInput ) : Range
GetMinimumBrightness ( int H, int S ) : int
LoadColorBounds ( ) : void
PickBrightness ( int H, int S, Luminosity luminosity ) : int
PickHue ( ColorScheme scheme ) : int
PickSaturation ( int hue, Luminosity luminosity, ColorScheme scheme ) : int
RandomColor ( ) : System
RandomWithin ( Range range ) : int
RandomWithin ( int lower, int upper ) : int

메소드 상세

GetColor() 공개 정적인 메소드

Gets a new random color.
public static GetColor ( ColorScheme scheme, Luminosity luminosity ) : Color
scheme ColorScheme Which color schemed to use when generating the color.
luminosity Luminosity The desired luminosity of the color.
리턴 Color

GetColors() 공개 정적인 메소드

Generate one color for each of the provided generator options.
public static GetColors ( ) : Color[]
리턴 Color[]

GetColors() 공개 정적인 메소드

Generates multiple random colors.
public static GetColors ( ColorScheme scheme, Luminosity luminosity, int count ) : Color[]
scheme ColorScheme Which color schemed to use when generating the color.
luminosity Luminosity The desired luminosity of the color.
count int How many colors to generate
리턴 Color[]

HsvToColor() 공개 정적인 메소드

Converts hue, saturation, and lightness to a color.
public static HsvToColor ( int hue, int saturation, double value ) : Color
hue int
saturation int
value double
리턴 Color

Seed() 공개 정적인 메소드

Reseeds the random number generated.
public static Seed ( ) : void
리턴 void

Seed() 공개 정적인 메소드

Reseeds the random number generated.
public static Seed ( int seed ) : void
seed int The number used to reseed the random number generator.
리턴 void