Liberty BASIC Community Forum
« Palette the instant color switch »

Welcome Guest. Please Login or Register.
Sep 21st, 2017, 11:36pm


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Palette the instant color switch  (Read 129 times)
michael
Team Liberty BASIC


member is offline

Avatar




PM


Posts: 111
xx Palette the instant color switch
« Thread started on: Jan 14th, 2016, 10:13pm »

Anyone ever thought about the old command Palette?
It used to be able to switch a color of an entire color on the screen instantly.
So for flash effects, like in a space game...(lightning, weapon strikes.. and other effects, Palette deserves a look once more)
I think its implementation in language would require deeper levels of graphics access than some people would care to make the trouble for.. It may be related to poke, which would have directly changed the memory value in graphics.
User IP Logged

I like making program generators and reinventing the wheel.. I never make mistakes.. Not ever.. (lie)
CarlGundel
Administrator
ImageImageImageImageImage


member is offline

Avatar

author of Liberty BASIC


Homepage PM


Posts: 2833
xx Re: Palette the instant color switch
« Reply #1 on: Jan 14th, 2016, 10:57pm »

Hi Michael,

Yes some old home computer such as the Atari and Commodore computer had hardware registers for color mapping that would let you do interesting things but that is not the way graphics architecture is implemented for PCs running Windows. Now you could implement that in software but that does not provide the instant switching of color values that you describe.

-Carl
User IP Logged

author of Liberty BASIC
http://www.libertybasic.com
Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5526
xx Re: Palette the instant color switch
« Reply #2 on: Jan 15th, 2016, 02:04am »

Actually Anatoly posted some stuff where he simply moved the color table in the .bmp header and reloaded the .bmp. As I recall it worked quite well. Can't remember what the subject was.

Here
« Last Edit: Jan 15th, 2016, 04:46am by Rod » User IP Logged

CarlGundel
Administrator
ImageImageImageImageImage


member is offline

Avatar

author of Liberty BASIC


Homepage PM


Posts: 2833
xx Re: Palette the instant color switch
« Reply #3 on: Jan 15th, 2016, 07:21am »

on Jan 15th, 2016, 02:04am, Rod wrote:
Actually Anatoly posted some stuff where he simply moved the color table in the .bmp header and reloaded the .bmp. As I recall it worked quite well. Can't remember what the subject was.

Here

Yes, that's interesting but it is also different than modifying a palette and instantly causing what's on the screen to change.

-Carl
User IP Logged

author of Liberty BASIC
http://www.libertybasic.com
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls