Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hex color attribute for cell color #153

Draft
wants to merge 31 commits into
base: main
Choose a base branch
from
Draft

Hex color attribute for cell color #153

wants to merge 31 commits into from

Conversation

TeunHuijben
Copy link
Collaborator

This PR adds a type of attribute where the RGB color is encodes as hex.

In order to keep all attributes values numbers (not strings), the hex-string is converted to a integer as follows:

def hex_to_int(hex_string):
    return int(hex_string.lstrip('#'), 16)

As example, the hex string #FF0000 becomes 16711680. The TypeScript code of inTRACKtive decodes the integer value back to a hex string

TeunHuijben and others added 30 commits November 5, 2024 18:07
Copy link

vercel bot commented Dec 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
intracktive ✅ Ready (Inspect) Visit Preview Dec 9, 2024 11:43pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant