BLINK (function): Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Created page with "{{DISPLAYTITLE:_BLINK (function)}} The _BLINK function returns the current blink setting for SCREEN 0 colors. If enabled, returns -1 (default), otherwise returns 0. {{PageSyntax}} : {{Parameter|blinkState%%}} = _BLINK ==Availability== * Build 20170816/61 up (August 16, 2017). {{PageExamples}} {{CodeStart}}{{Cl|COLOR}} 16, 7 'Try uncommenting the line below: '{{Cl|_BLINK}} OFF {{Cl|IF}} _BLINK {{Cl|THEN}} {{Cl|PRINT}} "I'm blinking" {{Cl|ELSE}} {{C...") |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
{{PageAvailability}} | |||
* | * '''QB64 v1.2 and up''' | ||
* '''QB64-PE all versions''' | |||
{{PageExamples}} | {{PageExamples}} | ||
{{CodeStart}}{{Cl|COLOR}} 16, 7 | {{CodeStart}} | ||
{{Cl|COLOR}} {{Text|16|#F580B1}}, {{Text|7|#F580B1}} | |||
'Try uncommenting the line below: | {{Text|<nowiki>'Try uncommenting the line below:</nowiki>|#919191}} | ||
{{Text|<nowiki>'_BLINK OFF</nowiki>|#919191}} | |||
{{Cl|IF}} _BLINK {{Cl|THEN}} | {{Cl|IF}} {{Cl|_BLINK (function)|_BLINK}} {{Cl|THEN}} | ||
{{Cl|PRINT}} "I'm blinking" | {{Cl|PRINT}} {{Text|<nowiki>"I'm blinking"</nowiki>|#FFB100}} | ||
{{Cl|ELSE}} | {{Cl|ELSE}} | ||
{{Cl|PRINT}} "I'm not blinking" | {{Cl|PRINT}} {{Text|<nowiki>"I'm not blinking"</nowiki>|#FFB100}} | ||
{{Cl|END IF}} | {{Cl|END IF}} | ||
{{CodeEnd}} | {{CodeEnd}} | ||
Line 26: | Line 28: | ||
{{PageSeeAlso}} | {{PageSeeAlso}} | ||
* [https://qb64phoenix.com/forum/showthread.php?tid=1319 Featured in our "Keyword of the Day" series] | |||
* [[_BLINK]] (statement) | * [[_BLINK]] (statement) | ||
* [[OUT]] | * [[OUT]] | ||
{{PageNavigation}} | {{PageNavigation}} |
Latest revision as of 22:15, 25 May 2024
The _BLINK function returns the current blink setting for SCREEN 0 colors. If enabled, returns -1 (default), otherwise returns 0.
Syntax
- blinkState%% = _BLINK
Availability
- QB64 v1.2 and up
- QB64-PE all versions
Examples
COLOR 16, 7 'Try uncommenting the line below: '_BLINK OFF IF _BLINK THEN PRINT "I'm blinking" ELSE PRINT "I'm not blinking" END IF |
See also
- Featured in our "Keyword of the Day" series
- _BLINK (statement)
- OUT