Write up for Project 10: Artistic Rendering

Description

For this project, we were to build a class that allows simple artistic rendering within the Zelle Graphics system. The final product is meant to look partially like a drawing in crayon.

How Another Drawing Option Would Work

If you wanted to create a spraypaint effect within Zelle graphics, you could draw a point and have the program redraw the point and move them in a gaussian distibution from the original point (most concentrated in the center, the least on the outsides). If it were drawn in a line, it would need to develop small points to the outer edges of the 'spraypainted' line in order to simulate spray paint (instead of creating actual lines like the crayon class).

Benefits of Inheritance in Crayon Class

By using inheritance in the Crayon Class, we did not have to write nearly as much code. Instead, we were able to repurpouse other prewritten code.

Why We Needed to Override the setWidth Class

If setWidth were allowed when using the program, then the crayon lines would become ridiculously large and malformed since they were formed specifically for the lines drawn in Zelle graphics without modification.

Final Image and Description

My final image was created by incorporating the crayon class and using the read function to create interesting two-rule l-systems.

* I guess my only extension was making it pretty and using multiple rule l-systems... I couldn't figure out how to make the whole thing draw in crayon.




  • Back to homepage