Better avgColor
This commit is contained in:
parent
17f35174ea
commit
5eec896615
3 changed files with 3 additions and 5 deletions
|
|
@ -363,9 +363,7 @@ export default async function(
|
|||
|
||||
logger.debug(`average color is calculated: ${r}, ${g}, ${b}`);
|
||||
|
||||
const value = info.isOpaque ? `rgba(${r},${g},${b},0)` : `rgba(${r},${g},${b},255)`;
|
||||
|
||||
properties['avgColor'] = value;
|
||||
properties['avgColor'] = `rgb(${r},${g},${b})`;
|
||||
} catch (e) { }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue