diff --git a/_build/pages/guide.markdown b/_build/pages/guide.markdown index 5a3274f4..acb38e3a 100644 --- a/_build/pages/guide.markdown +++ b/_build/pages/guide.markdown @@ -244,13 +244,18 @@ Examples #inc:"mylib.bas" ... MyLibProc "Hi" -*Arrays and Matrices* -Define a 3x2 matrix -A = [11, 12; 21, 22; 31, 32] ``` + +### Arrays and Matrices + +Define a 3x2 matrix + +`A = [11, 12; 21, 22; 31, 32]` + That creates the array + -- -- 11 12 21 22 diff --git a/_build/pages/index.markdown b/_build/pages/index.markdown index a75d6830..103300de 100644 --- a/_build/pages/index.markdown +++ b/_build/pages/index.markdown @@ -2,41 +2,84 @@ > one more basic -::: articleRight :: -::: articleRightInner :: +SmallBASIC is a fast and easy to learn BASIC language interpreter ideal for everyday calculations, scripts and prototypes. SmallBASIC includes trigonometric, matrices and algebra functions, a built in IDE, a powerful string library, system, sound, graphic commands and communication via serial or sockets along with structured programming syntax. +```smallbasic +' Example for using functions in SmallBASIC + +s = AddStrings("My", "String") +print s + +func AddStrings(a, b) + return a + b +end +``` + +## Multi-platform + +SmallBASIC is released for Windows, Linux and Android. It can be build from source for many other POSIX compliant operating systems including Raspberry Pi OS for the Raspberry Pi. Thanks to the build in IDE programs can be written on your Android powered tablet or mobile phone and executed immediately ([Downloads](/pages/download.html)). + +Your program can be bundled with all necessary libraries to create executable files for Windows (exe-files) or Linux (AppImage). For Android a signed pkg can be created and for example distributed using Google play ([Distribute your program](/pages/distributiontool.html)). + +Additionally you can start programming with the online version of SmallBASIC in your browser right now: [Start online](/online/sbasic.html). + +## Editors, IDE and SmallBASIC versions + +SmallBASIC comes in three different flavors for the desktop. The SDL version offers a simple but efficient IDE and is perfect for working with graphics. The FLTK version has a great IDE. The console version doesn't offer an IDE and is text-only but works perfect with plugins like raylib or nuklear ([Downloads](/pages/download.html)). + +No matter which SmallBASIC version you prefer, external editors like Visual Studio Code, Geany, Sublime Text or KDE Kate can be setup for syntax highlighting or code execution ([Setup external editors](/language_support.html)). + +Instructions on how to use the editor in the SDL and Android version can be found in the article [Android](/pages/android.html) + +## Units + +Units are sets of functions, procedures and constants bundled in a BASIC-library and can be imported in your program. Units use their own namespace and therefore are separated from your program. + +```smallbasic +' Example for importing the CSS color-name unit + +Import crgb as c + +Color c.Black, c.Tomato +Print " Standard CSS Tomato background color " +Color c.Black, c.LightSteelBlue +Print " Standard CSS LightSteelBlue background color " + +rect 200, 200, 400, 400 COLOR c.DeepPink filled ``` -############## ## ## ############## -## ## ## ## ## ## -## ###### ## ######## ## ###### ## -## ###### ## ## ###### ## ###### ## -## ###### ## #### ## ## ###### ## -## ## #### ## ## -############## ## ## ## ############## - ## ## - #### ## #### ## ## ## ########## -#### ## ## ## ###### ## - ######## ## #### ######## #### - #### #### ###### #### ## -## ## ######## ## #### ## - ########## #### ## -############## ###### #### ###### -## ## ########## ## -## ###### ## ## ###### ## ###### -## ###### ## ## ######## ## -## ###### ## #### ## ###### ## -## ## ## ###### ## -############## ## ## ## ########## +## Plugins + +Plugins are libraries written in C which extent the functionality of SmallBASIC. SmallBASIC offers an API to write your own plugins. The following plugins are part of the release version of SmallBASIC: raylib (2D and 3D game development), nuklear (GUI programming), clipboard, gifencoder and WebSockets. You can also import a plugin for the Raspberry Pi to use the GPIO ports and some additional hardware like displays or temperature sensors. + +```smallbasic +' Example how to use raylib to open a window and print text. + +import raylib as rl +import raylibc as c + +const screenWidth = 800 +const screenHeight = 450 + +rl.InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window") +rl.SetTargetFPS(60) + +while (!rl.WindowShouldClose()) + rl.BeginDrawing() + rl.ClearBackground(c.RAYWHITE) + rl.DrawText("Congrats! You created your first window!", 190, 200, 20, c.LIGHTGRAY) + rl.EndDrawing() +wend +rl.CloseWindow() ``` -::: -::: +## More information + +Read more in the short [user guide](/pages/guide.html) or in the [SmallBASIC handbook](/pages/vade.html). See the documentation of all SmallBASIC commands in the [language reference](/pages/reference.html) or browse additional articles in the [article section](/pages/articles.html). -SmallBASIC is a fast and easy to learn BASIC language interpreter ideal for everyday calculations, scripts and prototypes. SmallBASIC includes trigonometric, matrices and algebra functions, a built in IDE, a powerful string library, system, sound, and graphic commands along with structured programming syntax. -[Read more](/pages/guide.html) +## News -## SmallBASIC version 12.26 has been released for Windows, Linux and web browser +### SmallBASIC version 12.26 has been released for Windows, Linux and web browser ::: date | March 26, 2023 @@ -44,7 +87,7 @@ SmallBASIC is a fast and easy to learn BASIC language interpreter ideal for ever For details see: [Latest release](https://github.com/smallbasic/SmallBASIC/releases/tag/12_26). Please report any issues to either the forum, email or github issues page. -## SmallBASIC version 12.24 has been released for Windows, Linux and web browser +### SmallBASIC version 12.24 has been released for Windows, Linux and web browser ::: date | June 20, 2022 @@ -53,7 +96,7 @@ For details see: [Latest release](https://github.com/smallbasic/SmallBASIC/relea For details see: [Latest release](https://github.com/smallbasic/SmallBASIC/releases/tag/v12.24). Please report any issues to either the forum, email or github issues page. -## New article: "Language Support" provided by Joe7M +### New article: "Language Support" provided by Joe7M ::: date | February 15, 2022 @@ -62,7 +105,7 @@ For details see: [Latest release](https://github.com/smallbasic/SmallBASIC/relea For details see: [Language Support](/pages/language_support.html) -## SmallBASIC version 12.23 has been released +### SmallBASIC version 12.23 has been released ::: date | August 31, 2021 @@ -70,7 +113,7 @@ For details see: [Language Support](/pages/language_support.html) For details see: [Latest release](https://github.com/smallbasic/SmallBASIC/releases/tag/v12.23). Please report any issues to either the forum, email or github issues page. -## SmallBASIC version 12.20 has been released +### SmallBASIC version 12.20 has been released ::: date | January 8, 2021 @@ -78,7 +121,7 @@ For details see: [Latest release](https://github.com/smallbasic/SmallBASIC/relea This release includes new loadable modules with support for [RAYLIB](https://www.raylib.com/), [Nuklear](https://github.com/Immediate-Mode-UI/Nuklear) and WebSockets. For details see: [release notes](https://github.com/smallbasic/SmallBASIC/releases/tag/v12.20). Please report any issues to either the forum, email or github issues page. -## SmallBASIC version 12.19 has been released +### SmallBASIC version 12.19 has been released ::: date | July 16, 2020 @@ -87,7 +130,7 @@ This release includes new loadable modules with support for [RAYLIB](https://www For details see: [release notes](https://github.com/smallbasic/SmallBASIC/releases/tag/12_19). Please report any issues to either the forum, email or github issues page. -## New teaching resource: "Programming SmallBASIC" provided by Gerard Thomas Labèrnia +### New teaching resource: "Programming SmallBASIC" provided by Gerard Thomas Labèrnia ::: date | April 11, 2020 @@ -95,7 +138,7 @@ For details see: [release notes](https://github.com/smallbasic/SmallBASIC/releas For details see: [Articles](/pages/articles.html) -## SmallBASIC version 0.12.18 has been released +### SmallBASIC version 0.12.18 has been released ::: date | March 16, 2020 @@ -103,7 +146,7 @@ For details see: [Articles](/pages/articles.html) For details see: [release notes](https://github.com/smallbasic/SmallBASIC/releases/tag/0_12_18). Please report any issues to either the forum, email or github issues page. -## SmallBASIC version 0.12.17 has been released +### SmallBASIC version 0.12.17 has been released ::: date | December 22, 2019 @@ -111,7 +154,7 @@ For details see: [release notes](https://github.com/smallbasic/SmallBASIC/releas For details see: [release notes](https://github.com/smallbasic/SmallBASIC/releases/tag/0_12_17). The windows package includes sbasici.exe which is a recreation of the previous FLTK version. Please report any issues to either the forum, email or github issues page. -## New discussion forum +### New discussion forum ::: date | October 29, 2019 @@ -119,7 +162,7 @@ For details see: [release notes](https://github.com/smallbasic/SmallBASIC/releas The Retrogamecoding and Basicprogramming Forum is scheduled for closure on 4th of November 2019. A new forum has been created at www.syntaxbomb.com. Click the **Discuss** link above and join the discussion! -## Cool new sample program, news on progress +### Cool new sample program, news on progress ::: date | June 2, 2019 @@ -127,7 +170,7 @@ The Retrogamecoding and Basicprogramming Forum is scheduled for closure on 4th o [Read more](/posts/2019-06-02.html) -## SmallBASIC version 0.12.14 has been released +### SmallBASIC version 0.12.14 has been released ::: date | November 22, 2018 @@ -135,7 +178,7 @@ The Retrogamecoding and Basicprogramming Forum is scheduled for closure on 4th o [Read more](/pages/changelog.html) -## SmallBASIC version 0.12.13 has been released +### SmallBASIC version 0.12.13 has been released ::: date | September 13, 2018 @@ -147,7 +190,7 @@ The Retrogamecoding and Basicprogramming Forum is scheduled for closure on 4th o [Samples](/pages/samples.html) -## Web site updated +### Web site updated ::: date | March 29, 2018 @@ -155,7 +198,7 @@ The Retrogamecoding and Basicprogramming Forum is scheduled for closure on 4th o [Read more](/posts/2018-29-03.html) -## SmallBASIC version 0.12.10 has been released +### SmallBASIC version 0.12.10 has been released ::: date | December 24, 2017 diff --git a/_build/reference/1015-console-definekey.markdown b/_build/reference/1015-console-definekey.markdown index 5c89a25a..f624074e 100644 --- a/_build/reference/1015-console-definekey.markdown +++ b/_build/reference/1015-console-definekey.markdown @@ -2,7 +2,7 @@ > DEFINEKEY k, sub -Binds a keystroke to a user defined function. To unbind the keystroke definition pass 0 as the `sub` argument. +Binds a keycode `k` to a user defined sub routine `sub`. When the key is pressed, the coresponding sub routine will be called. To unbind the keycode definition pass `0` as the `sub` argument. Keycodes for PC keyboard @@ -33,7 +33,7 @@ Keycodes for PC keyboard | Shift + A to Z | asc("A") to asc("Z") | -## Examples +### Examples Example 1: Bind keystroke for left and right arrow key @@ -57,13 +57,13 @@ wend ``` -Example 2: Unbind a keystroke +### Example 2: Unbind a keystroke ``` DEFINEKEY 0xFF04, 0 ``` -Example 3: Etch-a-Sketch +### Example 3: Etch-a-Sketch ``` ' DEFINEKEY demo.bas SmallBASIC 0.12.2 [B+=MGA] 2016-03-30 @@ -131,7 +131,7 @@ sub quit end ``` -Example 4: This example is outdated and just a reference for buttons in PALM OS +### Example 4: This example is outdated and just a reference for buttons in PALM OS ``` ' Note: diff --git a/_build/reference/1429-graphics-showpage.markdown b/_build/reference/1429-graphics-showpage.markdown index 30b39ae5..a9af109e 100644 --- a/_build/reference/1429-graphics-showpage.markdown +++ b/_build/reference/1429-graphics-showpage.markdown @@ -1,8 +1,8 @@ # SHOWPAGE -> SHOWPAGE +> SHOWPAGE ([n]) -This command is used to display pending graphics operations allowing for smooth animations. +This command is used to display pending graphics operations allowing for smooth animations. If SHOWPAGE is used, the internal SmallBASIC graphics update mechanism is set to manual mode. To enable automatic mode again, call SHOWPAGE with the optional parameter `n = 1`. This is useful, if the FORM command is used to display GUI elements. ### Example diff --git a/_build/reference/1522-system-cwd.markdown b/_build/reference/1522-system-cwd.markdown index 7b0a58f0..91c49a78 100644 --- a/_build/reference/1522-system-cwd.markdown +++ b/_build/reference/1522-system-cwd.markdown @@ -1,9 +1,11 @@ # CWD -> CWD +> s = CWD Gets current working directory. +### Example + ``` print cwd ``` diff --git a/_build/reference/525-console-form.markdown b/_build/reference/525-console-form.markdown index 1b6325e2..ee34a943 100644 --- a/_build/reference/525-console-form.markdown +++ b/_build/reference/525-console-form.markdown @@ -1,6 +1,6 @@ # FORM -> FORM(formMap) +> f = FORM(formMap) Creates a form object `f` from a MAP variable `formMap`. Form object `f` gives access to the following GUI elements: @@ -22,7 +22,7 @@ In listboxes and dropdown listboxes press and hold mouse button to scroll throug |-------------|-------------------------------| | doEvents() | Process system events for mouse and keyboard handling. | close() | Closes the active FORM. -| refresh(n) | n = 1 Copy the UI state into the FORM input variables. n = 0 Update the UI state using the FORM input variables. +| refresh(n) | `n = 1` copy the UI state into the FORM input variables `f.inputs`. `n = 0` update the UI state using the FORM input variables `f.inputs`. The form object `f` may contain the following properties: @@ -70,6 +70,17 @@ The type attribute can be one of the following: | "text" | Single or multi-line text input. | "image" | Image button. +### Change or read the GUI elements + +Once the GUI elements are rendered on screen they can be changed for example to respond to user input. By calling `f.refresh(1)` the current state of the GUI elements will be copied to `f`. The content of `f` is rendered to screen, when calling `f.refresh(0)`. `f.inputs` is an array of MAP variables. The first element of that array is the first GUI element added to `formMap.inputs`. For example the color of the first element can be changed: + +``` +f.inputs[0].color = 12 +f.refresh(0) +``` + +To get a list of all available elements of the n-th GUI element, you can simply use `print f.inputs[n]`. + ### Example 1: Creating a push button using callback function ``` @@ -174,6 +185,8 @@ l.y = 120 l.height = 200 l.width = 100 l.value = "cats|dogs|fish|birds|insects" +' alternative way is to pass an array: +' l.value = ["cats", "dogs", "fish", "birds", "insects"] l.color = rgb(255, 255, 255) l.backgroundColor = rgb(100, 100, 100) @@ -202,6 +215,8 @@ l.x = 120 l.y = 120 l.width = 100 l.value = "cats|dogs|fish|birds|insects" +' alternative way is to pass an array: +' l.value = ["cats", "dogs", "fish", "birds", "insects"] l.color = rgb(255, 255, 255) l.backgroundColor = rgb(100, 100, 100) diff --git a/_build/reference/542-data-delete.markdown b/_build/reference/542-data-delete.markdown index d333292d..b7bdc9dd 100644 --- a/_build/reference/542-data-delete.markdown +++ b/_build/reference/542-data-delete.markdown @@ -1,27 +1,23 @@ # DELETE -> DELETE a, idx [, count] +> DELETE A, idx [, count] -Deletes 'count' elements at position 'idx' of array 'a'. +Deletes `count` elements at position `idx` of array `A`. -* a - An array-variable. -* idx - Position in the array. -* count - The number of the elements to be deleted. - -Example 1: Delete element at position 2 +### Example 1: Delete element at position 2 ``` -a = [1,2,3,4,5] -print a +a = [1, 2, 3, 4, 5] +print a ' Output: [1,2,3,4,5] delete a, 2 -print a +print a ' Output: [1,2,4,5] ``` -Example 2: Delete two elements starting at position 2 +### Example 2: Delete two elements starting at position 2 ``` -b = [1,2,3,4,5] -print b +b = [1, 2, 3, 4, 5] +print b ' Output: [1,2,3,4,5] delete b, 2, 2 -print b +print b ' Output: [1,2,5] ``` diff --git a/_build/reference/569-data-data.markdown b/_build/reference/569-data-data.markdown index d344889c..2ae5dc0a 100644 --- a/_build/reference/569-data-data.markdown +++ b/_build/reference/569-data-data.markdown @@ -1,17 +1,17 @@ # DATA -> DATA constant1 [,constant2]... +> DATA constant1 [, constant2] ... [, constantN] Stores one or more constants, of any type, for subsequent access via READ command. DATA commands are non executable statements that supply a stream of data constants for use by READ commands. All the items supplied by all the DATA commands in a program make up one continuous "string" of information that is accessed in order -by your program's READ commands. Use RESTORE ro specify which data block should be +by your program's READ commands. Use RESTORE to specify which data block should be read next. -Example 1: +### Example 1 ``` FOR I = 1 TO 3 @@ -23,7 +23,7 @@ END DATA 1,2,3 ``` -Example 2: Using several data commands. +### Example 2: Using several data commands. ``` FOR I = 1 TO 6 @@ -37,8 +37,7 @@ DATA 3,4,5 DATA 6 ``` - -Example 3: Specify which data block should be read. +### Example 3: Specify which data block should be read. ``` RESTORE MyDataBlock diff --git a/_build/reference/575-date-date.markdown b/_build/reference/575-date-date.markdown index df8bf367..fe6aa3af 100644 --- a/_build/reference/575-date-date.markdown +++ b/_build/reference/575-date-date.markdown @@ -1,13 +1,15 @@ # DATE -> DATE +> s = DATE -Returns the current date as string "DD/MM/YYYY". +Returns the current date as string with format "DD/MM/YYYY". -See DATEDMY for splitting a date to integers. +See DATEDMY for splitting a date-string to integers. -~~~ +### Example + +``` DateString = date datedmy DateString, d, m, y print DateString + " -> Day: " + d + " Month: " + m + " Year: " + y -~~~ +``` diff --git a/_build/reference/576-date-datefmt.markdown b/_build/reference/576-date-datefmt.markdown index fe9a2477..efd463f3 100644 --- a/_build/reference/576-date-datefmt.markdown +++ b/_build/reference/576-date-datefmt.markdown @@ -1,8 +1,8 @@ # DATEFMT -> DATEFMT (format, dmy| (d,m,y)| julian_date) +> s = DATEFMT (format, dmy| (d,m,y)| julian_date) -Returns formatted date string. +Returns a formatted date string. The input date can be given as a date-string returned by DATE, as the integers `d` for day, `m` for month and `y` for year, or as a julian date. `format` is a string specifying the format of the date: | Format | Desription | |--------| -------------------------| @@ -19,8 +19,12 @@ Returns formatted date string. See also DATE and DATEDMY. +### Example + ``` -PRINT DATEFMT("ddd dd, mm/yy", "23/11/2001") -REM prints "Fri 23, 11/01" +PRINT DATEFMT("ddd dd, mm/yy", 23, 11, 2001) ' Output: Fri 23, 11/01 +PRINT DATEFMT("mm.dd.yy" , "23/11/2001") ' Output: 11.23.01 +PRINT DATEFMT("dd.mm.yyyy" , DATE) ' Output: 19.10.2023 +PRINT DATEFMT("dddd" , JULIAN("23/11/2001")) ' Output: Friday ``` diff --git a/_build/reference/614-graphics-color.markdown b/_build/reference/614-graphics-color.markdown index 8602ade3..1d2ea39c 100644 --- a/_build/reference/614-graphics-color.markdown +++ b/_build/reference/614-graphics-color.markdown @@ -2,7 +2,7 @@ > COLOR foreground-color [, background-color] -Specifies the foreground color `foreground-color` and the optinal background color `background-color`. +Specifies the foreground color `foreground-color` and the optional background color `background-color`. See RGB and RGBF to create colors. diff --git a/_build/reference/641-language-def.markdown b/_build/reference/641-language-def.markdown index 4b60aa13..77e74cbe 100644 --- a/_build/reference/641-language-def.markdown +++ b/_build/reference/641-language-def.markdown @@ -1,30 +1,28 @@ # DEF -> DEF name[(par1[,...])] = expression +> DEF name[(par1 [, ... , parN])] = expression -Defines a single line function. +Defines a single line function with the function name `name` and the parameters `par1` to `parN`. `expression` is a valid SmallBASIC expression returning a value. See FUNC for multiline functions and SUB for multiline subroutines. -Example 1: Function with one parameter +### Example 1: Function with one parameter -~~~ +``` def f(x) = 2*x+3 - print f(3) -~~~ +``` -Example 2: Function with two parameters +### Example 2: Function with two parameters -~~~ +``` def f(x,y) = 2*x + 3*sin(y) - print f(1,2) -~~~ +``` -Example 3: Random number between low and high +### Example 3: Random number between low and high -~~~ +``` ' A function for random integer numbers between low and high (inclusive) DEF randi(lo, hi) = (RND * (hi - lo + 1))\1 + lo @@ -33,12 +31,11 @@ DEF randf(lo, hi) = (RND * (hi - lo + 1)) + lo print randi(0, 100) print randf(0, 100) -~~~ +``` -Example 4: DEF and LOCAL - -~~~ +### Example 4: DEF and LOCAL +``` ' DEF and LOCAL.bas SmallBASIC 0.12.2 [B+=MGA] 2016-04-06 'can I use DEF locally in a sub without interfering with main variable or DEF names def aboutMe() = "I am texting from main code." @@ -52,7 +49,6 @@ sub mySub() def aboutMe() = "I am texting from mySub." ? "Hi, ";aboutMe end - -~~~ +``` diff --git a/_build/reference/693-math-deriv.markdown b/_build/reference/693-math-deriv.markdown index 5f8edc27..40c6f0af 100644 --- a/_build/reference/693-math-deriv.markdown +++ b/_build/reference/693-math-deriv.markdown @@ -2,15 +2,17 @@ > DERIV x, maxtries, maxerr, BYREF result, BYREF errcode USE expr -Calculation of derivative. errcode = 0 for success; otherwise calculation error. +Calculation of derivative. -* x: value of x -* maxtries: maximum number of retries -* maxerr: tolerance -* errcode: 0 for success; otherwise calculation error -* result: the result -* expr: f(x) +* `x`: value of x +* `maxtries`: maximum number of retries +* `maxerr`: tolerance +* `errcode`: 0 for success; otherwise calculation error +* `result`: the result +* `expr`: the function f(x) + +### Example 1 ``` ' What is the derivative of f(x) for a given x @@ -30,6 +32,8 @@ print "Result of DERIV at x = "; x; " : "; result print "Exact derivative at x = "; x; " : "; d(x) ``` +### Example 2 + ``` ' What is the derivative of f(x) for a given x diff --git a/_build/reference/724-math-cot.markdown b/_build/reference/724-math-cot.markdown index c7dbc292..07b12197 100644 --- a/_build/reference/724-math-cot.markdown +++ b/_build/reference/724-math-cot.markdown @@ -1,8 +1,10 @@ # COT -> COT (x) +> f = COT (x) -Cotangent. +Cotangent of `x`. + +### Example ``` a = cot(pi) diff --git a/_build/reference/725-math-coth.markdown b/_build/reference/725-math-coth.markdown index 8cb6e4b0..e14e40d5 100644 --- a/_build/reference/725-math-coth.markdown +++ b/_build/reference/725-math-coth.markdown @@ -1,8 +1,10 @@ # COTH -> COTH (x) +> f = COTH (x) -Cotangent hyperbolicus. +Cotangent hyperbolicus of `x`. + +### Example ``` a = coth(pi) diff --git a/_build/reference/726-math-csc.markdown b/_build/reference/726-math-csc.markdown index caabe6ed..b78df87a 100644 --- a/_build/reference/726-math-csc.markdown +++ b/_build/reference/726-math-csc.markdown @@ -1,8 +1,10 @@ # CSC -> CSC (x) +> f = CSC (x) -Cosecant. +Cosecant of `x`. + +### Example ``` a = csc(0.1) diff --git a/_build/reference/727-math-csch.markdown b/_build/reference/727-math-csch.markdown index 23ce46d7..b92a146e 100644 --- a/_build/reference/727-math-csch.markdown +++ b/_build/reference/727-math-csch.markdown @@ -1,8 +1,10 @@ # CSCH -> CSCH (x) +> f = CSCH (x) -Hyperbolic cosecant. +Hyperbolic cosecant of `x`. + +### Example ``` a = csch(0.1) diff --git a/_build/reference/728-math-deg.markdown b/_build/reference/728-math-deg.markdown index 60a0cb3d..e9e2d5e7 100644 --- a/_build/reference/728-math-deg.markdown +++ b/_build/reference/728-math-deg.markdown @@ -1,8 +1,10 @@ # DEG -> DEG (x) +> f = DEG (x) -Radians to degrees. +Converts radians `x` to degrees. + +### Example ``` a = deg(pi) diff --git a/_build/reference/806-system-delay.markdown b/_build/reference/806-system-delay.markdown index 6e56ce2d..87271a2c 100644 --- a/_build/reference/806-system-delay.markdown +++ b/_build/reference/806-system-delay.markdown @@ -2,7 +2,9 @@ > DELAY ms -Delay for a specified amount of milliseconds. Note DELAY depends on the system clock. +Delay for a specified amount of milliseconds `ms`. Note DELAY depends on the system clock. + +### Example ``` print "Wait 1000ms..." diff --git a/css/style.css b/css/style.css index 0443285f..f6202ad5 100644 --- a/css/style.css +++ b/css/style.css @@ -275,13 +275,13 @@ h1, h2, h3, h4, h5, h6 { padding-bottom: 0.17em; } .article h1 { - font-family: 'Linux Libertine','Georgia','Times',serif; + font-family: sans-serif;; border-bottom: 1px solid #a2a9b1; } .article h2 { font-size: 1.6em; margin: 0.5em 0 0.5em 0; - font-family: 'Linux Libertine','Georgia','Times',serif; + font-family: sans-serif;; border-bottom: 1px solid #a2a9b1; line-height: 1.4em; padding-bottom: 0em; @@ -331,7 +331,7 @@ a:hover { position: absolute; } .sidebar h3 { - font-size: 0.75em; + font-size: 1em; color: #4d4d4d; font-weight: normal; margin: 0.5em 0 0 0; @@ -344,7 +344,7 @@ a:hover { line-height: 1.125em; margin: 0; padding: 0.25em 0; - font-size: 0.75em; + font-size: 1em; word-wrap: break-word; } div.articleRight { @@ -472,7 +472,7 @@ div.articleRightInner { border-left: 1px solid #a7d7f9; background: #FFF; line-height: 1.6; - font-size: 0.875em; + font-size: 1em; border-top: 1px solid #a7d7f9; border-bottom: 1px solid #a7d7f9; }