functions of processing

edited February 2015 in General Discussion

please tell me about 10 most important functions of processing?

Answers

  • functions or commands?

    ;-)

    functions

    setup()

    draw()

    mousePressed()

    ...

    commands

    size

    if - else

    for - loop

    while

    background

    class

    ...

    ;-)

  • Neither size() nor background() aren't commands/Java keywords! [-X

  • yeah, I find the initial question ambigous...

    He is not referring to Java at all... they are processing keywords ;-)

    but is he meaning "functions of processing" as in "setup()" ?

    • or as in "if else..." ?
  • thanks for answers but I mean what processing can do? 10 most important ability of processing?

  • and I'll be so grateful if explain one or two line bout each one? thank you

  • My favourite is an educational function of processing - the syntax is simpler than Java, you can see the results of changing your code almost immediately and that inspires, as your program is a sketch started with a primitive ellipse and step by step grown into something valuable.

  • edited February 2015

    Quotes from https://processing.org

    Processing is a programming language, development environment, and online community. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology. Initially created to serve as a software sketchbook and to teach computer programming fundamentals within a visual context, Processing evolved into a development tool for professionals. Today, there are tens of thousands of students, artists, designers, researchers, and hobbyists who use Processing for learning, prototyping, and production.

    » Free to download and open source
    » Interactive programs with 2D, 3D or PDF output
    » OpenGL integration for accelerated 3D
    » For GNU/Linux, Mac OS X, and Windows
    » Over 100 libraries extend the core software
    » Well documented, with many books available
    

    Processing is a Wrapper around Java

    We didn't set out to make the ultimate language for visual programming, we set out to make something that was:

    • A sketchbook for our own work, simplifying the majority of tasks that we undertake,
    • A teaching environment for that kind of process, and
    • A point of transition to more complicated or difficult languages like full-blown Java or C++

    Java makes a nice starting point for a sketching language because it's far more forgiving than C++ and also allows users to export sketches for distribution across many different platforms. When we got started in 2001, most people were using it to build applets that ran on the web, which was important to the early growth of the project.

    Processing is not intended as the ultimate environment or language (in fact, the language is just Java, but with a new graphics and utility API along with some simplifications). Fundamentally, Processing just assembles our experience in building things, and trying to simplifies the parts that we felt should be easier.

  • As you see from the tutorials, processing ist strong in that it takes away the burden of technical stuff and concentrate on real programming.

    It is especially strong in arts, graphics and animation, both 2D and 3D.

    It is strong in data handling.

    It is strong in the community.

    It is strong in the libraries.

  • The general setup of a Processing sketch from the point of view of functions is this:

    setup() {
    }
    
    draw() {
    }
    

    The idea is that this small amount of code is all you need to start building up a visual program (a sketch). Many things are done for the programmer who often is learning programming (Processing is aimed at artists and people who are not computer scientists)

    setup() runs once when the sketch starts and then draw() loops forever. Animated content belongs inside of draw()

    Processing has functions for drawing to the screen easily such as background(), ellipse(), line(), rect(), etc. It also has functions for handling mouse and keyboard input easily

    @Chrisir, if, else, for, while, etc. are keywords that control program flow. Just about every programming language has these

  • ok, thanks!

Sign In or Register to comment.