[[https://www.youtube.com/watch?v=z18DtKxbwCk|add video picture here]] ==== Introduction ==== >Accroding to (wiki.Physical_computing) Physical computing, in the broadest sense, means building interactive physical systems by the use of software and hardware that can sense and respond to the analog world. From here came the idea to create a patch that can be used by the user to draw funny stuff, erase some of them , erase all, manipulating drawing line thickness and changing the color of drawing through the usage of the mouse (which is considered as a way of physical interaction). ==== Mechanism ==== i used the mouse as the main component to control the input going to the patch it detects when if the left click is clicked , and the right click is not active then a drawing process will start by creating a line using the current coordinates of the location of the mouse on the screen . The user can start drawing in the patch. It detects also if the right click and the left click is not active, then the user wants to use the mouse as a rubber by drawing a quad of black color (the same color of the background color of the renderer). {{ :topic2:renderer.png?500 |}} For changing drawing color by creating a linear spread that has 20 as spread count which is attached to HSV color join which is attached io color box consists of 20 rows to display 20 colors.Besides this color box , exists a iobox advanced value with a slider to select the targeted color that has minimum as 0 and maximum as 19 (20 colors). {{ :topic2:color_picker.png?300 |}} For line thickenss i used a counter and toggle that when u press on the toggle it will increase the value of the counter by one which will increase the thickness of the line by 1. {{ :topic2:counter.png?300 |}} ---- Patch for VVVV: {{:topic2:paint.zip|}}