Oolala Users Manual

To run this program run Main.java. For Arithmetica, type Arithmetica
at any time. For image generator, type Imagematica at anytime. In both
cases type the command on a line by itself. Most basic commands are
supported for Arithmetica. Similarly for Imagematica.

////////Syntax///////



Arithmetica: The command line math program.



Unary Operators:

~, negate: The negation symbol, can negate a single expression. ~5

Binary Operators:
+, plus: addition operator, 2 + 2

*, times:

/, divide:

^, power: exponentiate. 2^5

=, assign: variable assignment, x= 3

N-ary operators:

sum(arg1 ,arg2, arg3,..., argN), Sum(.,..,..)

average(a1, a2, ..., aN), (also avg)

Imagematica: The image generator and photo/art manipulator


.double: .2323887134 , will give an image of default width (specified
in IImageConstants.java) of color 0 to 1.

color(0-255,0-255,0-255) will give a colored constant image.

"fileName" will load an image stored in the root directory of that fileName

string x = expression will allow for assignment of images as variables:
ex: volcanoe = "testImage.jpg" , ex: volcanoe + .293

string x: creates default image if x is undeclared (all black), otherwise returns the
image stored in x.

sin( <exp>), Sin also. Ex: Sin(“image.jpg”)

cos( <exp>), Cos also, same syntax as sin.

+, plus: add images, sums their color values and mods by 255.

-, minus, subtracts images.

*, times: very interesting result, as a result of the color value wraparound (233*211%255 is
very different from 233*211%212). This causes a fractal lookalike as a result.

~, invert: takes the 'negative' of the image as with photography (or so it looks) (255-current value).

sum, Sum: add a series of images together at once, same syntax and in arithmetica.