mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: mix fonction fix
This commit is contained in:
@@ -363,10 +363,7 @@ export class Color implements definition.Color {
|
||||
return Color.fromHSL(this.a, hsl.h, hsl.s, hsl.l);
|
||||
}
|
||||
|
||||
static mix(color1: Color, color2: Color, amount) {
|
||||
amount = (amount === 0) ? 0 : (amount || 50);
|
||||
|
||||
|
||||
static mix(color1: Color, color2: Color, amount = 50) {
|
||||
const p = amount / 100;
|
||||
|
||||
const rgba = {
|
||||
|
||||
Reference in New Issue
Block a user