Title: alpha precision · Issue #174 · Qix-/color · GitHub
Open Graph Title: alpha precision · Issue #174 · Qix-/color
X Title: alpha precision · Issue #174 · Qix-/color
Description: 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. ...
Open Graph Description: 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 w...
X Description: 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 ro...
Opengraph URL: https://github.com/Qix-/color/issues/174
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"alpha precision","articleBody":"Hello,\r\n\r\nWhen I parse hex values with alpha #000000aa\r\nI get { model: 'rgb', color: [ 0, 0, 0 ], valpha: 0.67 }\r\nThe same valpha value is calculated for #000000ab\r\n\r\nThis is probably due to the rounding when converting from 255 base to 1 base.\r\nIs there a way to access the intermediate 255 base value?\r\n\r\nI 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\r\n\r\nAny idea?","author":{"url":"https://github.com/ferllings","@type":"Person","name":"ferllings"},"datePublished":"2020-03-06T09:40:29Z","url":"https://github.com/Qix-/color/issues/174"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6872d368-5f02-aded-f736-eeb2c33154b1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B97A:29339B:32693D:43BC22:6AEDB192 |
| html-safe-nonce | 01211371c0c010106c39e1961a5181afa892a21e4f574e15996fb6235d781a37 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTdBOjI5MzM5QjozMjY5M0Q6NDNCQzIyOjZBRURCMTkyIiwidmlzaXRvcl9pZCI6IjQ5NzQzMjU2OTk3NTM5MTQ3NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 797ba9abc1b46cb218e278282601554071d055eacb88bfa16c202abf978eb7e1 |
| hovercard-subject-tag | issue:576810838 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/qix-/color/174/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fe2feca5f346fd0285f8aba53e9a75f8aba9c69bcfa5f035d11985ef9e344187/Qix-/color/issues/174 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fe2feca5f346fd0285f8aba53e9a75f8aba9c69bcfa5f035d11985ef9e344187/Qix-/color/issues/174 |
| og:image:alt | 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 w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ferllings |
| hostname | github.com |
| expected-hostname | github.com |
| None | e40242599af5e7da0f281843dec7492c322688d4a48caeea85f9fb8e41c8ea53 |
| turbo-cache-control | no-preview |
| go-import | github.com/Qix-/color git https://github.com/Qix-/color.git |
| octolytics-dimension-user_id | 885648 |
| octolytics-dimension-user_login | Qix- |
| octolytics-dimension-repository_id | 1939300 |
| octolytics-dimension-repository_nwo | Qix-/color |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1939300 |
| octolytics-dimension-repository_network_root_nwo | Qix-/color |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 89cbf2bb52a24fc179bf5925abba0ba574b262ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width