User contributions for SMcNeill

Jump to navigation Jump to search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)

18 April 2022

  • 22:2822:28, 18 April 2022 diff hist +1,431 N BLUECreated page with "{{DISPLAYTITLE:_BLUE}} The _BLUE function returns the palette intensity or the blue component intensity of a 32-bit image color. {{PageSyntax}} : {{Parameter|blueintensity&}} = _BLUE({{Parameter|rgbaColorIndex&}}[, {{Parameter|imageHandle&}}]) {{PageDescription}} * {{Parameter|rgbaColorIndex&}} is the ''RGBA'' color value or palette index of the color to retrieve the blue component intensity from. * The LONG intensity value returned ranges from 0 (no inte..."
  • 22:2722:27, 18 April 2022 diff hist +602 N BLINK (function)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..."
  • 22:2622:26, 18 April 2022 diff hist +1,236 N BLINKCreated page with "{{DISPLAYTITLE:_BLINK}} The _BLINK statement toggles blinking colors in text mode (SCREEN 0). Default state is ON. {{PageSyntax}} : _BLINK {ON|OFF} {{PageDescription}} * 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 f..."
  • 22:2622:26, 18 April 2022 diff hist +563 N BLEND (function)Created page with "{{DISPLAYTITLE:_BLEND (function)}} The _BLEND function returns enabled or disabled for the current window or a specified image handle when 32 bit. {{PageSyntax}} :{{Parameter|result%}} = _BLEND [({{Parameter|imageHandle&}})] {{PageDescription}} * _BLEND returns -1 if enabled or 0 if disabled by _DONTBLEND statement. * '''Note: _DONTBLEND is faster than the default _BLEND unless you really need to use it in 32..."
  • 22:1622:16, 18 April 2022 diff hist +4,655 N BLENDCreated page with "{{DISPLAYTITLE:_BLEND}} The _BLEND statement turns on 32 bit alpha blending for an image or screen mode and is on by default. {{PageSyntax}} : _BLEND [{{Parameter|imageHandle&}}] ===Parameters=== * {{Parameter|imageHandle&}} refers to an image in memory. If not specified, the current destination page (See _DEST) is affected. {{PageDescription}} * Alpha blending is on by default when loading a .PNG image to a 32-bit surface. * Normally it is used to turn..."
  • 22:0622:06, 18 April 2022 diff hist +5,407 N BITCreated page with "{{DISPLAYTITLE:_BIT}} The _BIT datatype can return only values of 0 (bit off) and -1 (bit on). {{PageSyntax}} : DIM {{Parameter|variable}} AS [{{KW|_UNSIGNED}}] _BIT [* {{Parameter|numberofbits}}] : _DEFINE {{Parameter|Letter}}[{{Parameter|-Range}}|,...] AS [{{KW|_UNSIGNED}}] _BIT [* {{Parameter|numberofbits}}] {{PageDescription}} * An _UNSIGNED _BIT can hold 0 or 1 instead of 0 and -1, if you set the numberofbits you can hold larger..."
  • 22:0122:01, 18 April 2022 diff hist +1,108 N BACKGROUNDCOLORCreated page with "{{DISPLAYTITLE:_BACKGROUNDCOLOR}} The _BACKGROUNDCOLOR function returns the current background color. {{PageSyntax}} :{{Parameter|BGcolor&}} = _BACKGROUNDCOLOR {{PageDescription}} * Use it to get the current background color to restore later in a program. * Returns the closest attribute value of the background color. {{PageExamples}} ''Example 1:'' Storing a background color for later use. {{CodeStart}} '' '' {{Cl|SCREEN}} 0 {{Cl|COLOR}} 1, 3 {{Cl|CLS}} BG..."
  • 21:5921:59, 18 April 2022 diff hist +2,084 N AXISCreated page with "{{DISPLAYTITLE:_AXIS}} The _AXIS function returns the relative position of a specified axis number on a controller device. {{PageSyntax}} : {{Parameter|move!}} = _AXIS({{Parameter|axis_number%}}) * SINGLE values returned range between -1 and 1 as maximums and 0 indicating minimum or axis center. * When the mouse is moved on the program screen, moves left or above center are negative while below or right are positive. * The ''axis_number'' must be a number..."
  • 21:4321:43, 18 April 2022 diff hist +838 N AUTODISPLAY (function)Created page with "{{DISPLAYTITLE:_AUTODISPLAY (function)}} The _AUTODISPLAY function returns the current display mode as true (-1) if automatic or false (0) if disabled using _DISPLAY. {{PageSyntax}} : {{Parameter|displayStatus%%}} = _AUTODISPLAY {{PageDescription}} * The function returns true (-1) if _AUTODISPLAY is enabled. This is the default state and indicates that every screen change (text or graphics) is displayed..."
  • 21:4221:42, 18 April 2022 diff hist +822 N AUTODISPLAYCreated page with "{{DISPLAYTITLE:_AUTODISPLAY}} The _AUTODISPLAY statement enables the automatic display of the screen image changes previously disabled by _DISPLAY. {{PageSyntax}} :_AUTODISPLAY {{PageDescription}} * _AUTODISPLAY is on by default and displays the screen at around 30 frames per second (normal vertical retrace speed). * _DISPLAY disables automatic graphic displays, but it also eliminates having to use PCOPY or page flipping when used correctly. Placi..."
  • 21:4221:42, 18 April 2022 diff hist +959 N ATANHCreated page with "{{DISPLAYTITLE:_ATANH}} The _ATANH returns the arc hyperbolic tangent of {{Parameter|x!}}, expressed in radians. {{PageSyntax}} : {{Parameter|return_value!}} = _ATANH({{Parameter|x!}}) {{PageSeeAlso}} * _D2G {{text|(degree to gradient}}, _D2R {{text|(degree to radian)}} * _G2D {{text|(gradient to degree)}}, _G2R {{text|(gradient to degree)}} * _R2D {{text|(radian to degree)}}, _R2G {{text|(radian to gradient)}} * COS {{text|(cosine..."
  • 21:4121:41, 18 April 2022 diff hist +1,479 N ATAN2Created page with "{{DISPLAYTITLE:_ATAN2}} The _ATAN2 function returns the radian angle between the positive x-axis of a plane and the point given by the coordinates (x, y). {{PageSyntax}} : {{Parameter|angle!}} = _ATAN2({{Parameter|y}}, {{Parameter|x}}) {{Parameters}} * {{Parameter|y}} is the vertical axis position (row) as a positive, zero or negative floating point value. * {{Parameter|x}} is the horizontal axis position (column) as a positive, zero or negative floating poin..."
  • 21:3921:39, 18 April 2022 diff hist +1,066 N $ASSERTSCreated page with "The $ASSERTS metacommand enables debug tests with the _ASSERT macro. {{PageSyntax}} :$ASSERTS :$ASSERTS:CONSOLE {{PageDescription}} * If an error message is passed to the _ASSERT statement, it is displayed in the console window if $ASSERTS:CONSOLE is used. ==Availability== * '''Version 1.4 and up'''. {{PageExamples}} ''Example:'' Adding test checks for parameter inputs in a function. {{CodeStart}} {{Cl|$ASSERTS}}:CONSOLE {{Cl|D..."
  • 21:3921:39, 18 April 2022 diff hist +1,388 N ASSERTCreated page with "{{DISPLAYTITLE:_ASSERT}} The _ASSERT statement can be used to perform tests in code that's in development, for debugging purposes. {{PageSyntax}} :_ASSERT {{Parameter|condition}}[, {{Parameter|errorMessage$}}] {{PageDescription}} * {{Parameter|condition}} is the condition that must be met in order to consider the _ASSERT valid. * Optional {{Parameter|errorMessage$}} is the message to be displayed in the console window if $ASSERTS:CONSOLE is use..."
  • 21:1121:11, 18 April 2022 diff hist +944 N ASINHCreated page with "{{DISPLAYTITLE:_ASINH}} The _ASINH returns the arc hyperbolic sine of x, expressed in radians. {{PageSyntax}} : {{Parameter|return_value!}} = _ASINH({{Parameter|x!}}) {{PageSeeAlso}} * _D2G {{text|(degree to gradient}}, _D2R {{text|(degree to radian)}} * _G2D {{text|(gradient to degree)}}, _G2R {{text|(gradient to degree)}} * _R2D {{text|(radian to degree)}}, _R2G {{text|(radian to gradient)}} * COS {{text|(cosine)}}, SIN {{tex..."
  • 21:1021:10, 18 April 2022 diff hist +2,572 N ASINCreated page with "{{DISPLAYTITLE:_ASIN}} The _ASIN function returns the angle measured in radians based on an input SINe value ranging from -1 to 1. {{PageSyntax}} : {{Parameter|radian_angle!}} = _ASIN({{Parameter|sine_value!}}) {{PageDescription}} * The {{Parameter|sine_value!}} must be measured >= -1 and <= 1, or else it will generate a return value of '''-1.#IND''', which is basically QB64's way of telling us that the number doesn't exist. * ARCSINE is the inverse func..."
  • 21:0921:09, 18 April 2022 diff hist +2,033 N ALPHA32Created page with "{{DISPLAYTITLE:_ALPHA32}} The _ALPHA32 function returns the alpha transparency level of a 32 bit color value. {{PageSyntax}} :{{Parameter|alpha&}} = _ALPHA32({{Parameter|color32~&}})''' {{Parameters}} * {{Parameter|color32&}} is the _UNSIGNED LONG 32 bit color value used to retrieve the alpha level. ** Color values that are set as a _CLEARCOLOR always have an alpha level of 0 (transparent). ** _SETALPHA can set any alpha level from 0 (or fully..."
  • 21:0921:09, 18 April 2022 diff hist +2,745 N ALPHACreated page with "{{DISPLAYTITLE:_ALPHA}} The _ALPHA function returns the alpha channel transparency level of a color value used on a screen page or image. {{PageSyntax}} :{{Parameter|result&}} = _ALPHA({{Parameter|color~&}} [, {{Parameter|imageHandle&}}]) {{PageDescription}} * If {{Parameter|imageHandle&}} is omitted, it is assumed to be the current write page. Invalid handles will create Illegal function call errors. * _NEWIMAGE 32 bit SCREEN modes wi..."
  • 20:5120:51, 18 April 2022 diff hist 0 N File:IDE macos.pngNo edit summary
  • 20:4820:48, 18 April 2022 diff hist −19 Main PageNo edit summary
  • 20:4620:46, 18 April 2022 diff hist +2,762 N ALLOWFULLSCREENCreated page with "{{DISPLAYTITLE:_ALLOWFULLSCREEN}} The _ALLOWFULLSCREEN statement allows setting the behavior of the ALT+ENTER combo. {{PageSyntax}} : _ALLOWFULLSCREEN [{_STRETCH|_SQUAREPIXELS|OFF|_ALL}][, {_SMOOTH|OFF|_ALL}] {{PageDescription}} * Calling the statement with no parameters enables all four possible full screen modes (and is the default state when a program is started): both _STRETCH (_SMOOTH and _OFF) and _SQUAREPIXELS (_SMOOTH and _OFF)..."
  • 20:4620:46, 18 April 2022 diff hist +970 N ACOSHCreated page with "{{DISPLAYTITLE:_ACOSH}} The _ACOSH returns the nonnegative arc hyperbolic cosine of {{Parameter|x!}}, expressed in radians. {{PageSyntax}} : {{Parameter|return_value!}} = _ACOSH({{Parameter|x!}}) {{PageSeeAlso}} * _D2G {{text|(degree to gradient}}, _D2R {{text|(degree to radian)}} * _G2D {{text|(gradient to degree)}}, _G2R {{text|(gradient to degree)}} * _R2D {{text|(radian to degree)}}, _R2G {{text|(radian to gradient)}} * COS {{te..."
  • 20:4520:45, 18 April 2022 diff hist +3,553 ACOSNo edit summary
  • 20:4320:43, 18 April 2022 diff hist +84 N ACOSCreated page with "https://qb64phoenix.com/wiki/www.qb64.org/wiki/index1115.html?title=ACOS&action=edit"
  • 20:4320:43, 18 April 2022 diff hist +2,123 N ACCEPTFILEDROPCreated page with "{{DISPLAYTITLE:_ACCEPTFILEDROP}} The _ACCEPTFILEDROP statement prepares a program window to receive files dropped from Windows Explorer in a drag/drop operation. {{PageSyntax}} : _ACCEPTFILEDROP [{ON|OFF}] {{PageDescription}} * Calling the statement with no parameters turns drag/dropping ON. * To know when files have been dropped into your program's window, check that _TOTALDROPPEDFILES is greater than 0. * Use _DROPPEDFILE to read the list, either se..."
  • 20:4120:41, 18 April 2022 diff hist +22,957 N Text Using GraphicsCreated page with "While QB64 offers _FONT and Unicode text options, Qbasic was limited in what it could offer. This shortfall could be overcome in various ways including using sprite pictures. Thanks to QB64, we can have the best in both worlds without creating them yourself! :::::::::1) The characters can be loaded in a file for Qbasic. :::::::::2) Text fonts can be sized without re-loading them. :::::::::3) Data files are smaller than BSAVE image files. :::::::::4} Proper c..."
  • 20:4120:41, 18 April 2022 diff hist +4,735 N LibrariesCreated page with "<center>'''DLL, C++ and the Windows API Libraries'''</center> * Working with QB64 Declarations: C Libraries, DLL Libraries, Windows Libraries * QB64 Library Keywords: DECLARE LIBRARY, DECLARE DYNAMIC LIBRARY, ALIAS, BYVAL * PEEK and POKE Library: PEEK and POKE Library * COM and LPT ''Inpout32.dll'' OUT: Port Access Libraries * Setting Windows environment values and changing them in the Registry: Windows Environment * SF..."
  • 20:4020:40, 18 April 2022 diff hist +8,639 N Windows EnvironmentCreated page with "You can try to set environmental values for a program. The program doesn't affect anything other than itself and its child processes. {{CodeStart}} '' '' {{Cl|DECLARE DYNAMIC LIBRARY}} "kernel32" {{Cl|FUNCTION}} SetEnvironmentVariableA& ({{Cl|BYVAL}} lpName {{Cl|AS}} {{Cl|_OFFSET}}, {{Cl|BYVAL}} lpValue {{Cl|AS}} {{Cl|_OFFSET}}) {{Cl|FUNCTION}} GetLastError~& () {{Cl|DECLARE LIBRARY|END DECLARE}} {{Cl|DIM}} Nam {{Cl|AS}} {{Cl|STRING}} {{Cl|DIM}} Value {{Cl|AS}} {{Cl|..."
  • 20:3920:39, 18 April 2022 diff hist +2,290 N Console WindowCreated page with "QB64 has console window support using the following QB64 Metacommand or keyword: {{PageSyntax}} ::: $CONSOLE ::: _CONSOLE [{ON|OFF}] * _CONSOLE OFF turns the console window off once a console has been established using the $CONSOLE Metacommand. * _CONSOLE ON should only be used AFTER the console window has been turned OFF previously. * _DEST CONSOLE can be used to send screen output to the console window using QB64 commands such as PRINT...."
  • 20:3420:34, 18 April 2022 diff hist +1,740 BooleanNo edit summary
  • 20:3320:33, 18 April 2022 diff hist +86 BooleanNo edit summary
  • 18:5718:57, 18 April 2022 diff hist +21 BooleanNo edit summary
  • 18:5518:55, 18 April 2022 diff hist +144 BooleanNo edit summary
  • 18:5418:54, 18 April 2022 diff hist +605 BooleanNo edit summary
  • 18:5218:52, 18 April 2022 diff hist +337 BooleanNo edit summary
  • 18:5118:51, 18 April 2022 diff hist +713 BooleanNo edit summary
  • 18:4918:49, 18 April 2022 diff hist +460 BooleanNo edit summary
  • 18:4818:48, 18 April 2022 diff hist +3 N BooleanCreated page with "foo"
  • 18:4318:43, 18 April 2022 diff hist +5,442 N BinaryCreated page with "'''Binary''' is the base 2 numbering system. It is used by computers because the computer consists of switches that are either on or off. The primary purpose of reading bit values is to translate what was sent by a port or register read. * Base 2 has numerical values of 0 for off or 1 for on. There is no Qbasic function to return the binary values. * A computer register has 8 bit switches for one byte of data. Each register can return values from 0 to 255 just like ..."
  • 18:4118:41, 18 April 2022 diff hist +24,953 N ASCIICreated page with "==ASCII and Extended Codes== {| align="right" | __TOC__ |} <center>[http://en.wikipedia.org/wiki/Code_page_437 MS-DOS code page 437]:</center> :{| border="1" cellpadding="2" ! colspan="8"|[http://ascii.cl/control-characters.htm ASCII Control 0 to 31]   |        ASCII Keyboard Character Codes 32 to 127                |- ! Code ||Character <tt>[key]</tt> || Code || Character || Code || Character || Code || Character |- | 0 ||        (N..."
  • 18:4118:41, 18 April 2022 diff hist +17,245 N ArraysCreated page with "{| align="center" | __TOC__ |} ===What are Arrays?=== Arrays are simply variables with a number of elements that can each hold data in memory. To designate a certain element, integers denote the value's position in memory. Don't let talk about memory scare you! Basic does all of the work for you just by using the simple commands in this tutorial. Besides that, you have already been using memory since you created your first variable! Arrays can store element bytes..."
  • 18:4018:40, 18 April 2022 diff hist +2,293 N Keywords currently not supported by QB64Created page with "The keywords listed here are not supported in QB64. QB64 is meant to be compatible with '''QB 4.5 or lower''' versions. '''PDS (7.1) is not supported'''. Older code that uses these keywords won't generate errors, as these are ignored by the compiler. {| align="right" | __TOC__ |} * ALIAS (supported in DECLARE LIBRARY only) * ANY * BYVAL (supported in DECLARE LIBRARY only) * CALLS * CDECL * DATE$ (statement) (reading the current DATE$ is sup..."
  • 14:3114:31, 18 April 2022 diff hist −19 Template:ParameterNo edit summary
  • 13:4213:42, 18 April 2022 diff hist +50 N Template:ParameterCreated page with "{{#if {{{Parameter}}} | {{{result&}}} | result& }}"
  • 13:0313:03, 18 April 2022 diff hist +14,693 N QB64 FAQCreated page with "{| align="center" |__TOC__ |} As with everything else, this list will be updated to correspond to new progress of QB64 so make sure that you are using the latest version of '''QB64'''. Please note that it may take a short time to update this list. <center>'''{{text|It's recommended to exclude (whitelist) "qb64.exe" (also the ''internal'' folder) from any real-time anti-virus scanning to prevent IDE Module Errors.|red}}'''</center> ==Q: What is QB64?== A: '''QB..."
  • 12:1212:12, 18 April 2022 diff hist +84,493 N Keyword Reference - By usageCreated page with "{| align="Right" | __TOC__ |} Go to Frequently Asked Questions about QB64 Go to Alphabetical keywords Keywords currently not supported by QB64 Keywords Not Supported in Linux or MAC versions == Arrays and Data Storage == <center>'''Arrays'''</center> * _DEFINE (statement) {{text|defines a range of unt..."
  • 12:0612:06, 18 April 2022 diff hist −894 Main PageNo edit summary
  • 12:0412:04, 18 April 2022 diff hist +87,713 Keyword Reference - AlphabeticalNo edit summary
  • 12:0312:03, 18 April 2022 diff hist +1,198 N Keyword Reference - AlphabeticalCreated page with "<div id="toc"><p style="text-align: center"><br> '''Alphabetical QB64 Keyword Listings''' <br><br>     '''QB 64:'''  _A _B _C _D _E _F _G _H _I _K _L _M _N _O _P _R _S _T _U _V _W                <br><br>'''QBasic:'''  A   B   C   D   #E|..."
  • 05:5105:51, 18 April 2022 diff hist +2,385 Main PageNo edit summary
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)