mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-26 04:19:17 +00:00
fix hwbtorgb missing alpha
This commit is contained in:
@@ -387,7 +387,7 @@ function rgbFromHwbString(string) {
|
||||
const w = clamp(parseFloat(match[2]), 0, 100);
|
||||
const b = clamp(parseFloat(match[3]), 0, 100);
|
||||
const a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);
|
||||
return hwbToRgb([h, w, b, a]);
|
||||
return [...hwbToRgb([h, w, b, a]), a];
|
||||
}
|
||||
|
||||
function colorFromString(string) {
|
||||
|
||||
Reference in New Issue
Block a user