Numworks is a graphical calculator where you can write python like program to create graphical experience only by modiffing the color of the pixel of the screen and getting the color of a pixel. The screen resolution of the numworks is 320x222 pixels.
- clone the repository
- launch the unity project
- Now that you have launched the project you can :
- launch the emulator and execute an example program
- create a new script in the
Programs
folder and code your own program that you can execute by launching the emulator and selecting your program in the menu
- create a new .cs script
- remove the default content of the public class of your script :
- now that you have and empty program copy past this code snippets in your program :
void Start()
{
StartCoroutine(main_func());
}
IEnumerator main_func()
{
// code here
yield return null;
}
- you can now code in the "main_func" that you can rename if you want, the line
yield return null;
is there to control the flow of the program
yield return null;
To pause the program and continue in the next frame
yield return new WaitForSeconds(2f);
To pause the program for 2 seconds
yield break;
To completly end the program
take a look at the default program included in the progect to see how to use the in real case
-
With the emulator is given 3 default module that contain multiple function for different purpose :
- kandinsky
- math
- random
-
to import those module you have to simply put those line at the top of your program :
-
and then use modules :
There is 2 example program for now
This is a program that draw the mandelbrot fractal
This is program that draw a clock showing the current hour, minute and seconde