Debscript

piccyy

Debscript is a simple programming language dedicated to the production of computer generated graphics. It is designed to introduce the concepts and practices of computer programming to anyone who is interested in becoming a programmer. It helps you to find out if you would like to pursue a longer study of a general programming languages such as Java, JavaScript or Python. It does this by creating computer programs with the single purpose of drawing pictures on the screen of an Android mobile phone or tablet. So you can experience all the pleasures and frustrations of programming while quickly generating useful JPG and PNG images. You type the program code into the soft keyboard of the device then run it to see the outcome on the mobile screen. So Debscript is an easy way tp learn programming and at he same time generate useful graphics files

The script can be copied to any Android device and saved at any stage as a JPG or PNG graphics file. These files may be used in web pages, documents, presentations and other media. It is an authentic programming language that introduces complete beginners to all the basic programming concepts and provides all users with an easy way to generate graphics files.

Programmed graphics is a unique genre. The images are created from source code instead of a manual drawing action. The results are limited in some respects compared to pictures drawn free hand, but they have huge advantages. In particular, they are mathematically accurate. Drawing positions, sizes, shapes and colors are specified with pixel precision. The difference is illustrated by the figure alongside. They are also fully editable. Debscripts are easily changed or even reprogrammed by simply rewriting parts or all of the scripts and they can be saved and imported into other scripts.

The learning strategy is a condensed version of the Constructivist Learning Cycle, sometimes described as Information, Understanding and Application. Here we concentrate on the Application stage and only include enough Information and Understanding to reach a rapid but narrow learning outcome.

A Debscript drawing example

To get started with Debscript all you have to do is run the app and touch-click the Help button. Then touch the Debscript button to get a full introduction to the language and the app. There is also a Keywords button that lists all the Debscript keywords for easy reference while you are programming, and an Examples button that provides some example scripts. You can copy and paste these into your own code.

Program code can be written by anyone who is able to enter and edit text on a mobile device. It develops general coding skills such as how to write, test and debug programs and it introduces standard code structures such as statements, keywords, syntax and loops to those who are not familiar with programming. It is a great way to start programming.

In addition to program logic, Debscript develops problem solving and creative skills. And, since it draws shapes on a screen, it also promotes an awareness of two-dimensional coordinate space and geometrical shapes as well as arithmetic skills.

Debscript script files can be sent as email attachments and uploaded to cloud storage for copying to other devices including personal computers and other mobiles. They can be processed, stored and edited as text files and then, at any time used to create separate image files.

Flowers

flower

 

Here is the source code for a simple flower image.

background 024.
mode portrait.
fan 300 300 7
object 500 700 63 0
path 909 900 250 800 500
400 750 800 500 1200
oval 990 500 700 300 300.
label 909 362 1350 180 pink.

flower

 

And the same code with a few edits.

background 024.
mode portrait.
fan 300 300 6
object 500 700 63 0
path 900 900 250 800 500
400 750 800 500 1200
oval 990 500 700 300 300.
label 900 365 1350 180 red.

flower

 

And with two more edits.

background 024.
mode portrait.
fan 300 300 6
object 500 700 63 0
path 900 009 250 800 500
400 750 800 500 1200
rectangle 990 500 700 300 300.
label 900 365 1350 180 red.

 

Examples

House

Car

Icon

Pattern

Bird

Boat

Face

Person

 

Get Debscript. There is a free version to try it out and a full version with all the features.