C# Class 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.
Exibir arquivo Open project: WeeWorld/Swiffotron

Public Methods

Method Description
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.

Private Methods

Method Description
Clone ( ) : HDRColor

Method Details

HDRColor() public method

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)
return SWFProcessing.ModellingUtils.Util

HDRColor() public method

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)
return SWFProcessing.ModellingUtils.Util

ToString() public method

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