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
orsuperdeboss
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
or1.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
or2.0
or the passeddepth
itself as a neutralizing divisor. -
toColor(
Color color, int depth) → Color -
Provide a required
color
from whichthis
Swell may generate a corresponding shaded Color. Thedepth
of the effect is a required int. A lowerdepth
fades the object more into its background, while a larger one will set the object more apart by contrast.