• Print

Author Topic: _clearcolor not funktion  (Read 486 times)

funkheld

  • Full Member
  • ***
  • Posts: 229
    • Email
Re: _clearcolor not funktion
« Reply #15 on: June 26, 2011, 02:33:35 AM »
I can even rename it here and re-compile  ???
libqbx.cpp

gruss

stylin

  • Guest
Re: _clearcolor not funktion
« Reply #16 on: June 26, 2011, 02:46:49 AM »
Quote from: Galleon on June 26, 2011, 02:07:48 AM
Sorry for the confusion about the meaning of keywords. Even if we called it _TRANSCOLOR people might think of it as 'transition color'.

_CLEARCOLOR seems like it should zero out pixels with the given color or use the current background color (in the same way as "clear screen" does). _TRANSCOLOR does seem a little cryptic, probably would be better to be a little bit more verbose and have _TRANSPARENTCOLOR. _MASKCOLOR is also a good alternative.

Of course, you could just implement a _REPLACECOLOR keyword and kill a few birds with one stone: more flexibility and absolutely zero ambiguity.

Clippy

  • Hero Member
  • *****
  • Posts: 16431
  • I LOVE π = 4 * ATN(1)    Use the QB64 WIKI >>>
    • Pete's Qbasic Site
    • Email
Re: _clearcolor not funktion
« Reply #17 on: June 26, 2011, 09:07:08 AM »
Red + blue would be pink sort of...

I REMOVED the "clearcolor" variable name from the CLS description a WHILE BACK for that VERY reason!

It WAS:

Syntax: CLS method%, clearcolor%

It is now ''BGcolor''
« Last Edit: June 26, 2011, 10:12:35 AM by Clippy »
QB64 WIKI: Main Page
Download Q-Basics Code Demo: Q-Basics.zip
Download QB64 BAT, IconAdder and VBS shortcuts: QB64BAT.zip
Download QB64 DLL files in a ZIP: Program64.zip

  • Print