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.
Afficher le fichier Open project: WeeWorld/Swiffotron

Méthodes publiques

Méthode 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

Méthode Description
Clone ( ) : HDRColor

Method Details

HDRColor() public méthode

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)
Résultat SWFProcessing.ModellingUtils.Util

HDRColor() public méthode

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)
Résultat SWFProcessing.ModellingUtils.Util

ToString() public méthode

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