@@ -456,7 +456,7 @@ abstract FlxColor(Int) from Int from UInt to Int to UInt
456
456
* @param Alpha How opaque the color should be, from 0 to 255
457
457
* @return This color
458
458
*/
459
- public inline function setRGB (Red : Int , Green : Int , Blue : Int , Alpha : Int = 255 ): FlxColor
459
+ public inline function setRGB (Red : Int , Green : Int , Blue : Int , Alpha = 255 ): FlxColor
460
460
{
461
461
red = Red ;
462
462
green = Green ;
@@ -474,7 +474,7 @@ abstract FlxColor(Int) from Int from UInt to Int to UInt
474
474
* @param Alpha How opaque the color should be, from 0 to 1
475
475
* @return This color
476
476
*/
477
- public inline function setRGBFloat (Red : Float , Green : Float , Blue : Float , Alpha : Float = 1 ): FlxColor
477
+ public inline function setRGBFloat (Red : Float , Green : Float , Blue : Float , Alpha = 1.0 ): FlxColor
478
478
{
479
479
redFloat = Red ;
480
480
greenFloat = Green ;
@@ -493,7 +493,7 @@ abstract FlxColor(Int) from Int from UInt to Int to UInt
493
493
* @param Alpha How opaque the color should be, from 0 to 1
494
494
* @return This color
495
495
*/
496
- public inline function setCMYK (Cyan : Float , Magenta : Float , Yellow : Float , Black : Float , Alpha : Float = 1 ): FlxColor
496
+ public inline function setCMYK (Cyan : Float , Magenta : Float , Yellow : Float , Black : Float , Alpha = 1.0 ): FlxColor
497
497
{
498
498
redFloat = (1 - Cyan ) * (1 - Black );
499
499
greenFloat = (1 - Magenta ) * (1 - Black );
@@ -511,7 +511,7 @@ abstract FlxColor(Int) from Int from UInt to Int to UInt
511
511
* @param Alpha How opaque the color should be, either between 0 and 1 or 0 and 255.
512
512
* @return This color
513
513
*/
514
- public inline function setHSB (Hue : Float , Saturation : Float , Brightness : Float , Alpha : Float ): FlxColor
514
+ public inline function setHSB (Hue : Float , Saturation : Float , Brightness : Float , Alpha = 1.0 ): FlxColor
515
515
{
516
516
var chroma = Brightness * Saturation ;
517
517
var match = Brightness - chroma ;
@@ -527,7 +527,7 @@ abstract FlxColor(Int) from Int from UInt to Int to UInt
527
527
* @param Alpha How opaque the color should be, either between 0 and 1 or 0 and 255
528
528
* @return This color
529
529
*/
530
- public inline function setHSL (Hue : Float , Saturation : Float , Lightness : Float , Alpha : Float ): FlxColor
530
+ public inline function setHSL (Hue : Float , Saturation : Float , Lightness : Float , Alpha = 1.0 ): FlxColor
531
531
{
532
532
var chroma = (1 - Math .abs (2 * Lightness - 1 )) * Saturation ;
533
533
var match = Lightness - chroma / 2 ;
0 commit comments