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

Photoshop ASE palette pattern #189

Open
mgerhardy opened this issue Nov 9, 2023 · 0 comments
Open

Photoshop ASE palette pattern #189

mgerhardy opened this issue Nov 9, 2023 · 0 comments

Comments

@mgerhardy
Copy link
Contributor

struct Block {
    be u16 Type;
    be u32 BlockLength;
    be u16 NameLength;
    be char16 Name[NameLength];
    if (Type == 1) {
        char ColorSpace[4];
        if (ColorSpace == "RGB " || ColorSpace == "LAB ") {
            be float rgb[3];
        } else if(ColorSpace == "CMYK") {
            be float cymk[4];
        } else if (ColorSpace == "Gray") {
            be float gray;
        }
        be u16 colorType;
    } else if (Type == 49153) {
        u8 unknown[BlockLength - 4];
    } else if (Type == 49154) {
        u8 unknown[BlockLength - 4];
    } else {
        u8 unknown[BlockLength];
    }
};

struct Header {
    u8 magic[4];
    be u16 versionMajor;
    be u16 versionMinor;
    be u32 blocks;
    Block b[blocks];
};

Header hdr @0x00;

files on lospec:

https://lospec.com/palette-list/periwinkle-is-a-weird-word.ase

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

No branches or pull requests

1 participant