SwellUtils extension

Properties to extend the utility of enum Swell.

on

Properties

degree Degree
A Degree is a simple description of whether something is "standard" or "super". In terms of Swell, either superemboss or superdeboss returns Degree.SUPER. Otherwise returns Degree.STANDARD.
no setter
isSwollen bool
Whether or not this Swell would classify as "swollen".
no setter
scalar double
Returns a relatively small scalar, either 1.0 or 1.5, considering degree.
no setter

Methods

divisor(int depth) double
Returns a value by which interger division may be acceptable; that is, a relatively small scalar like 1.0 or 2.0 or the passed depth itself as a neutralizing divisor.
toColor(Color color, int depth) Color
Provide a required color from which this Swell may generate a corresponding shaded Color. The depth of the effect is a required int. A lower depth fades the object more into its background, while a larger one will set the object more apart by contrast.