mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-29 01:18:11 +08:00
Fix color swapping to allow swapping of colors with opacity less than 100% (#212)
This commit is contained in:
@@ -78,7 +78,7 @@ export interface Color {
|
|||||||
alpha: number;
|
alpha: number;
|
||||||
}
|
}
|
||||||
function newColor(input: any): Color {
|
function newColor(input: any): Color {
|
||||||
return { red: input.red * 255, green: input.green * 255, blue: input.blue * 255, alpha: input.alpha * 255 };
|
return { red: input.red * 255, green: input.green * 255, blue: input.blue * 255, alpha: input.alpha };
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UpdateWorkingColors {
|
export interface UpdateWorkingColors {
|
||||||
|
|||||||
Reference in New Issue
Block a user