Repository navigation
Future-defined CLUT for bitmap visualizer #2938
Unanswered
Luke-Software1024
asked this question in
Pattern Language Q&A
Replies: 2 comments 3 replies
|
For any type of variable you can use the place operator (@) to set the address where the type will be placed.Let's say that you obtained the address where the LUT is located and that you stored the address in a variable called address which can be any valid address in the file. Further, assume you are at the place where the bitmap containing the indices is located. struct Bitmap {
u8 bitmap[indexCount];
u32 lut[255] @ address;
}[[visualize("bitmap",bitmap,lut)]];
Bitmap bm @ $;or something similar should create the visualization. |
0 replies
|
Typically the bitmap chunks are earlier in the file than the CLUT, so I don't have the CLUT address when the bitmap is defined. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm working on making a hexpat for the TIC-80 Cartridge format. In this format, the TILES and SPRITES chunks contain bitmap data, but the PALETTE chunk contains the CLUT. However, PALETTE is
How do I make a CLUT that is only defined later in the file?
All reactions