Type your ugBASIC program here (remember: keywords like PRINT must be UPPERCASE!).
Click on Build menu to select the target: you will download the compiled binary file!

BITMAP ENABLE (16) POSITIVE CONST limit = MIN( SCREEN WIDTH-1, SCREEN HEIGHT-1 ) CLS PARALLEL PROCEDURE proc1 FOR x=0 TO limit STEP 10 DRAW 0,x TO x,limit NEXT END PROC PARALLEL PROCEDURE proc2 FOR x=0 TO limit STEP 10 DRAW x,0 TO 0,limit-x NEXT END PROC PARALLEL PROCEDURE proc3 FOR x=0 TO limit STEP 10 DRAW x,0 TO limit,x NEXT END PROC PARALLEL PROCEDURE proc4 FOR x=0 TO limit STEP 10 DRAW x,limit TO limit,limit-x NEXT END PROC SPAWN proc1 SPAWN proc2 SPAWN proc3 SPAWN proc4

Welcome to the ugBASIC sandbox!

This tool was designed to quickly test whether the code you are writing compiles correctly and determines the desired results. Since the source is compiled thanks to dedicated servers, separate from the browser you are using, some commands are not available: for example, you cannot load external files or resources by using the LOAD command. If you need to develop a program with a complete tool, we recommend installing the executables or the UGBASIC-IDE.

Unless required by applicable law or agreed to in writing, this website is given on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.