BLINK: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 19: Line 19:


{{PageExamples}}
{{PageExamples}}
{{CodeStart}}{{Cl|COLOR}} 16, 7
{{CodeStart}}
{{Cl|PRINT}} "This is printed in black over gray background. Black letters are blinking."
{{Cl|COLOR}} {{Text|16|#F580B1}}, {{Text|7|#F580B1}}
{{Cl|PRINT}} "Hit a key..."
{{Cl|PRINT}} {{Text|<nowiki>"This is printed in black over gray background. Black letters are blinking."</nowiki>|#FFB100}}
{{Cl|PRINT}} {{Text|<nowiki>"Hit a key..."</nowiki>|#FFB100}}
{{Cl|SLEEP}}
{{Cl|SLEEP}}
{{Cl|_BLINK}} OFF
{{Cl|_BLINK}} {{Cl|OFF}}
{{Cl|PRINT}} "Now the same text is printed in black over bright white, because blinking was disabled."
{{Cl|PRINT}} {{Text|<nowiki>"Now the same text is printed in black over bright white, because blinking was disabled."</nowiki>|#FFB100}}
{{CodeEnd}}
{{CodeEnd}}




{{PageSeeAlso}}
{{PageSeeAlso}}
* [https://qb64phoenix.com/forum/showthread.php?tid=1319 Featured in our "Keyword of the Day" series]
* [[_BLINK (function)]]
* [[_BLINK (function)]]
* [[OUT]]
* [[OUT]]
* [[_DISPLAY]]
* [[_DISPLAY]]


{{PageNavigation}}
{{PageNavigation}}

Latest revision as of 22:15, 25 May 2024

The _BLINK statement toggles blinking colors in text mode (SCREEN 0). Default state is ON.


Syntax

_BLINK {ON|OFF}


Description

  • SCREEN 0 emulates the VGA palette with regular colors from 0 to 15 and blinking colors from 16-31 (these are the same colors as 0-15, except their blink attribute is set to on). _BLINK OFF emulates writing to the video memory and disabling blinking for colors 16-31.
  • Using colors 16-31 for the foreground with _BLINK set to OFF will produce high intensity background colors.
  • _BLINK is only effective in SCREEN 0. It's ignored in graphic modes.
  • IF _DISPLAY is used, blinking is disabled, even if _BLINK is ON, but high intensity backgrounds aren't enabled in this case.


Availability

  • Build 20170816/61 up (August 16, 2017).


Examples

COLOR 16, 7
PRINT "This is printed in black over gray background. Black letters are blinking."
PRINT "Hit a key..."
SLEEP
_BLINK OFF
PRINT "Now the same text is printed in black over bright white, because blinking was disabled."


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link