-
Notifications
You must be signed in to change notification settings - Fork 0
Processing
#Processing Breakdown
Processing is a java based programming language that employs the use of shape libraries that allow the user to easily create graphical user interfaces(GUIs). The methods that I primarily used to create my GUI were:
- size(), describes the size of the GUI (in pixels) *rect(), describes the location and size of a rectangle *stroke(), describes the color of the border of shapes *fill(), describes the color and opacity of the fill of shapes *strokeWeight(), describes the width of lines and borders *line(), draws a line Because I have had experience with processing in the past, I only had to access the references for these methods as a refresher.
Processing also has multiple methods and constants that allow the user to easily use the mouse in their GUI. The mouse methods and constants I used were: *mouseX, a constant that is the x position of the mouse *mouseY, a constant that is the y position of the mouse *mousePressed(), a method that is called if the mouse is pressed Similar to the other methods I used within processing, I was familiar with these coming in to the project. All of these method references can easily be found at processing's site here: Processing references
##Serial Unlike the other methods within processing, I was not familiar with accessing the serial library. Fortunately, Processing provides easy access to my PC's serial COM ports, and when my computer connects to the bluetooth module, it is mapped to one of the COM ports. This made it easy for me to send data from my PC to the bluetooth module by slightly modifying the example found here: Processing Serial Example