Skip to content

alpha precision #174

@ferllings

Description

@ferllings

Hello,

When I parse hex values with alpha #000000aa
I get { model: 'rgb', color: [ 0, 0, 0 ], valpha: 0.67 }
The same valpha value is calculated for #000000ab

This is probably due to the rounding when converting from 255 base to 1 base.
Is there a way to access the intermediate 255 base value?

I understand the difference isn't much between both values, but the problem is that I can't retrieve the original hex value from the object... both giving #000000aa

Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions