I've noticed that with palt() you can leave off the boolean argument and it will default to true, letting you say "palt(11)" if you want index 11 to be transparent. Edit: Uh, turns out I was wrong about this, but the rest of this is still a good suggestion, and as I say below, it'd actually be nice if palt(x) did work this way as well.
There's no equivalent for pal() though. If you leave off the second argument, it acts like you didn't give any arguments and resets the entire palette.
Suggestion: It'd be nice if pal(x) simply acted like pal(x,x), a quick way to reset a single entry to default.
My bad, I tested with color 0, so of course when I tried palt(0), it reset the whole palette and appeared to be setting palt(0,true). Sigh.
So, uh, let me request two features, then...
palt(x) is equal to palt(x,true)
- pal(x) is equal to pal(x,x)
These would be the most useful defaults, I think.
[Please log in to post a comment]