Parameterizing screen size in graphics examples


#1

I seem to understand most or all of the programs in the “Graphics examples” section of the uLisp site run on all the devices with support for a graphics display.

However, only some of the programs parameterize the screen size such as the surface of rotation one which takes the screen width and height as arguments. It would be useful to modify the other programs to accept the screen parameters as arguments or access them as global variables.


#2

Good suggestion - thanks.


#3

As far as I can see, the only two graphics examples that don’t let you adjust the function to your screen size are:

I’ll rewrite those to take width and height parameters. Are there any others you found?


#4

I found no others, thanks.


#5

There are actually a few more examples that are not parameterized, the graphics utilities.

By the way, when I run the surface of rotation program on the Cardputer I get the error:

Error [rotation]: undefined: z

#6

By the way, when I run the surface of rotation program on the Cardputer I get the error:

OK, I’ll check that.