ABSTRACT

This chapter talks about Processing's built-in functions, explains how useful these particular functions are, and discusses more about the nature of functions in general. It describes about void functions, which do not return a value and explains about a number of functions that do return a value, such as the sqrt() and pow() functions. The ability to generate random values using the random() function. Functions such as the round() function, which converts from the float to the int type are used. To convert values from another type into an int or float type of value using the int() and float()functions, are used respectively. The chapter also explains how to convert int values to char and String types using the char() and str() functions, respectively. It illustrates about inputting information from the user by means of a dialog box using Java's showInputDialog() function.