Log In  
Log In  

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.

P#53303 2018-06-05 20:49 ( Edited 2018-06-07 04:08)

Odd - palt(11) is equivalent to palt() from what I know...

P#53306 2018-06-05 21:42 ( Edited 2018-06-06 01:42)
:: Felice

@thisismypassword -

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.


@zep -

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.

P#53323 2018-06-06 11:22 ( Edited 2018-06-06 15:30)

[Please log in to post a comment]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-05-26 12:10 | 0.023s | 2097k | Q:18