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

feat: introduce mesh hash #20

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

feat: introduce mesh hash #20

wants to merge 5 commits into from

Conversation

renancaraujo
Copy link
Owner

This introduces a formal specification of a binary file format for mesh gradients, its read-and-write codecs in the flutter runtime, and a hash representation of such binary in a string hash.

Binary file format

The binary file format specification aims to create an optimal way of representing mesh gradient objects in binary format.

A declaration of such specification can be found on filespec/filespec.txt

Dart codec

Implements the above spec via the OMeshBinaryFormatCodec class with the help of "package: binarize."

This has the aim to be future-proof. It has space to support multiple color formats besides sRGB. (eg: p3)

Mesh hash

Using zlib for compression, it is a pair of functions that can represent the bytes generated by the above codec in a URL-friendly hash string.

Copy link

cloudflare-workers-and-pages bot commented Oct 24, 2024

Deploying omesh with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9345dc7
Status: ✅  Deploy successful!
Preview URL: https://7a576986.omesh.pages.dev
Branch Preview URL: https://renan-file-type.omesh.pages.dev

View logs

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