Math

Tuesday, January 15, 2013

Programming Drawing Program

     Today I had my third programming class. The classes before were mainly introductory, and were not interesting enough to blog about. But this in this class, we actually did a small project. I created a simple drawing program. The programming language that I used is called Processing, and is very much like the language Java. My simple program lets the user draw lines with their mouse. There are four different colors you can draw: black, red, green, blue. The "1" key switches the pen to red, the "2" key switches to green, the "3" key goes to blue, and the "4" goes to black. The "+" and "-" keys change the  width of the line being drawn. The "c" key clears everything. This program sounds harder to make than it actually was, though. Processing has some built-in functions to make visual programming easier. If I do anything else interesting with processing, a description will be on this blog. Thanks for reading!

5 comments:

  1. Sounds like advanced KidPix! KidPix is (or maybe was!) a basic drawing program that I had growing up. I have no idea if anyone still has it though. cause this was back when my family got our first computer! Now I'm sure there are much more interesting things for kids to play with on the comp but I tell you, everyone had KidPix haha!

    p.s we don't get to see the finished product?

    ReplyDelete
    Replies
    1. I can not save files in the blog.

      Delete
    2. As well as being a drawing program, processing has the tools to create an extremely complicated program for other non-visual software.

      Delete
  2. Max - Are you running 'processing' on your mac? I'm getting errors on one PC that I attempted to install it on. I'd like to do processing too.

    ReplyDelete
    Replies
    1. I don't have processing on my mac. All the computers I have seen it downloaded on are linux. I have no idea what to do for a mac. I will ask today.

      Delete