Accessibility First DevRel. I focus on ensuring content created, events held and company assets are as accessible as possible, for as many people as possible.
Great tip for a quick way of doing one off calculations. β€
Why in the world would you need a table to convert numbers to hex?
If you are doing a design and working with say 10 elements that all need their opacity fine tuning a table is many times faster than writing (0.8*255).toString(16) then (0.75*255).toString(16) then (0.72*255).toString(16) etc. etc.
Accessibility First DevRel. I focus on ensuring content created, events held and company assets are as accessible as possible, for as many people as possible.
Great tip for a quick way of doing one off calculations. β€
If you are doing a design and working with say 10 elements that all need their opacity fine tuning a table is many times faster than writing
(0.8*255).toString(16)
then(0.75*255).toString(16)
then(0.72*255).toString(16)
etc. etc.So tables certainly have their uses. π
Not convinced, another round?)
If I'd be fine-tuning 10 elements I'd use a browser color picker π
TouchΓ©.
It is a good thing I added a "skip this long table" link then so people can get past it π€£.
Haha, true that :-)