Forums Register Login

Indexed colors

+Pie Number of slices to send: Send
Hi!

In the DOS-days, asm mov ax,13h; int 10h; end; would get me into graphicmode 13. Presenting me with 320x200 resolution and 256 beautiful indexed colors. The nice thing about indexed colors was how simple one could animate a picture by just rotating parts of the palette. There seems to be a IndexedColor model in Java, but how close is this to the "old thing"??
Do i get a 8-bit palette or a full 32-bit one? Can i render a image(Sprite) in IndexedColor model on the screen at the same time with other images in other ColorModels, or do they all then have to be indexed?

Rotating the palette in mode 13 was a very cheep operation, is it still in Java? Or is mixing all those colormodels killing all the performance??

Does anyone have some examplecode showing how to access the palette and setting a pixel(putpixel(x,y))? (I just need a few sprites in my game to have indexedcolors)

MANY THANKS! (and sorry for my bad english!)

// Henrik
I can't take it! You are too smart for me! Here is the tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 992 times.
Similar Threads
Switching ColorModels In Realtime
Converting BufferedImage bit-depth
Graphics - BufferedImage - ImageIO problem
Switching ColorModels In Realtime
Circular motion.......
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:31:10.