C# 클래스 SWFProcessing.SWFModeller.Characters.HDRColor

A rather pretentiously named class that stores colour channels as fixed-point 8.8 numbers, allowing up to 256% color intensity. Useful for color transforms, really.
파일 보기 프로젝트 열기: WeeWorld/Swiffotron

공개 메소드들

메소드 설명
HDRColor ( UFP88 red, UFP88 green, UFP88 blue ) : SWFProcessing.ModellingUtils.Util

Initializes a new instance of a colour

HDRColor ( UFP88 red, UFP88 green, UFP88 blue, UFP88 alpha ) : SWFProcessing.ModellingUtils.Util

Initializes a new instance of a colour with an alpha component

ToString ( ) : string

Renders the colour as a string. Used only in test/debug console output.

비공개 메소드들

메소드 설명
Clone ( ) : HDRColor

메소드 상세

HDRColor() 공개 메소드

Initializes a new instance of a colour
public HDRColor ( UFP88 red, UFP88 green, UFP88 blue ) : SWFProcessing.ModellingUtils.Util
red UFP88 Red component, from fp0.0 to fp1.0 (Or beyond if you wish)
green UFP88 Green component, from fp0.0 to fp1.0 (Or beyond if you wish)
blue UFP88 Blue component, from fp0.0 to fp1.0 (Or beyond if you wish)
리턴 SWFProcessing.ModellingUtils.Util

HDRColor() 공개 메소드

Initializes a new instance of a colour with an alpha component
public HDRColor ( UFP88 red, UFP88 green, UFP88 blue, UFP88 alpha ) : SWFProcessing.ModellingUtils.Util
red UFP88 Red component, from fp0.0 to fp1.0 (Or beyond if you wish)
green UFP88 Green component, from fp0.0 to fp1.0 (Or beyond if you wish)
blue UFP88 Blue component, from fp0.0 to fp1.0 (Or beyond if you wish)
alpha UFP88 Alpha component, from fp0.0 to fp1.0 (Or beyond if you wish)
리턴 SWFProcessing.ModellingUtils.Util

ToString() 공개 메소드

Renders the colour as a string. Used only in test/debug console output.
public ToString ( ) : string
리턴 string