SlideShare a Scribd company logo
Report on Processing
                                                          ---Tong Xu




   . My Experience on Processing


Processing was the most difficult module for me because it needed the

Java language, which was a brand new area for me. However, browsing

the academic website (www.processing.org) was a perfect experience.

On Exhibition, diverse examples and original ideas inspired me and

aroused my interests in Java and Processing. What was more fortunate

was that a collection of step-by-step lessons were available covering

beginner, intermediate and advanced topics. And I found similar tutorials

in Chinese, so it was relatively easier for me to learn processing.



Processing is an important tool to make the 3-D chatting in my

dissertation project more interactive and personalized.




                                                                        1
.The Process to Learn Processing


1. As a novice in Java and Processing, I began by downloading and

  installing processing software from processing.org.



2. First of all, I learnt how to change the size of window and draw

  shapes. The sketches were as follows:




  Figure 1 and 2 showed the sketches to run two points and one line

  respectively, and figure 3 displayed the line when I pressed the “run”

  button on the top left corner of sketch panel. “Size()” determined the

  size of window to show the objects or interactions, “point()” was

  decided by the coordinates on X and Y axis, and “line()” was formed

  of two points.



   After every command, a semicolon (;) was required to tell

   processing to perform the command.



                                                                       2
3. Then I learnt the knowledge of digital color. This part was not

   difficult, as I had learnt in Photoshop. Generally speaking, 0 meant

   black and 255 meant white, 255 referred to 100% opacity and 0

   referred to 100% transparency. In between, other numbers were a

   shade of grey or some percentage of opacity.



   However, how to set colors in Processing was what I needed to learn.

   When I made a shape, I needed to “fill()” it with some color or degree

   of opacity. In my project, there was a piece of command

   “fill(82,86,246,197)”, which referred that the color was purple (Red:

   82, Green: 86, Blue: 246) and it had 75% opacity.



4. Making use of blocks like “setup()” and “draw()” were the

   condition to create animation and interactions. The “setup()” block ran

   alone and should be used for any initialization. The “draw()” block ran

   repeatedly and could be used to handle animation.



5. Then I learnt to take advantage of “x” “y” as variables, in which way

   users could be allowed to interact with input devices like the mouse

   or keyboard. In my project, I designed an interactive mouse.




                                                                         3
.The Explanation of the Project---Interactive Mouse




The sketch of Interactive Mouse was as follows:



void setup() {          // The setup() block is used for initialization

size(500, 500);         // The project sets the window size to 50

}

void draw() {           // The draw() block is used to handle animation.

background(0);          //The background is set to black.

float x = mouseX;        // Value of X is assigned by the position of mouse on X axis.

float y = mouseY;       // Value of Y is assigned by the position of mouse on Y axis.

rect(x, y, x+10, y+10);       //A rectangle is set up.

fill(238,231,35,200);     // Interior of the shape is set to yellow and partial opacity.

rect(x+10, y+10,x+10, y+10);           // Another rectangle is set up.

fill(82,86,246,191);                   //color: purple, partial opacity

rect(x+20, y+20, x+10, y+10);         // Another rectangle is set up.

fill(81,235,92,180);                 //color: green, partial opacity

rect(x+30,y+30,x+10, y+10);         // Another rectangle is set up.

fill(255,200,200,255);               //color: pink, partial opacity

stroke(255,128,0);       //The outline is set to orange. (Red:255, Green:128, Blue:0)

strokeWeight(5);                     //The width of stroke is set to 5.


                                                                                           4
smooth();     //Shapes are drawn with smooth edges to enhance visual refinement.

line(x, y, x+20, y-40);        //A line is built.

line(x+40, y, x+20, y-40); //Another line is forming an angle with previous one.

}




When I ran the sketch of the project, the movements of pictures in the

window followed the position of the mouse. I would like to introduce

interactive mouse in my dissertation project to offer fun to participants.

The effects of my project were as follows:




In the future,       I will think of adding texts in the square to offer

real-time messages to users.



Please have fun with you play with it!




                                                                                   5

More Related Content

What's hot

Basics of Computer graphics lab
Basics of Computer graphics labBasics of Computer graphics lab
Basics of Computer graphics lab
Priya Goyal
 
BASFIN 2: Quiz 3
BASFIN 2: Quiz 3BASFIN 2: Quiz 3
BASFIN 2: Quiz 3
Samantha Abalos
 
Gauss in java
Gauss in javaGauss in java
Gauss in javabaxter89
 
Volleyball fertig
Volleyball fertigVolleyball fertig
Volleyball fertig
Monika Schwarze
 
Rumus VB Menghitung Nilai Persamaan
Rumus VB Menghitung Nilai PersamaanRumus VB Menghitung Nilai Persamaan
Rumus VB Menghitung Nilai Persamaan
T. Astari
 
Programming the BBC micro:bit with MicroPython by Dunham High School
Programming the BBC micro:bit with MicroPython by Dunham High SchoolProgramming the BBC micro:bit with MicroPython by Dunham High School
Programming the BBC micro:bit with MicroPython by Dunham High School
PYCON MY PLT
 
BASFIN 2 Finals reviewer [Computations]
BASFIN 2 Finals reviewer [Computations]BASFIN 2 Finals reviewer [Computations]
BASFIN 2 Finals reviewer [Computations]
Samantha Abalos
 
7. chapter vi
7. chapter vi7. chapter vi
7. chapter vi
Chhom Karath
 
From Scratch to Snap! , what visual programming brings to my students.
From Scratch to Snap! , what visual programming brings to my students.From Scratch to Snap! , what visual programming brings to my students.
From Scratch to Snap! , what visual programming brings to my students.
Nathalie Carrié
 
10CSL67 CG LAB PROGRAM 8
10CSL67 CG LAB PROGRAM 810CSL67 CG LAB PROGRAM 8
10CSL67 CG LAB PROGRAM 8
Vanishree Arun
 
Programa expresiones regulares
Programa expresiones regularesPrograma expresiones regulares
Programa expresiones regulares
Anel Sosa
 
TensorFlow 深度學習快速上手班--電腦視覺應用
TensorFlow 深度學習快速上手班--電腦視覺應用TensorFlow 深度學習快速上手班--電腦視覺應用
TensorFlow 深度學習快速上手班--電腦視覺應用
Mark Chang
 
The Tree of Babel
The Tree of BabelThe Tree of Babel
The Tree of Babel
Youjin Chung
 
Codecomparaison
CodecomparaisonCodecomparaison
Codecomparaison
SokhnaRokhayaDIOP
 
Drawoval
DrawovalDrawoval
Drawoval
kiuntoro
 

What's hot (20)

Basics of Computer graphics lab
Basics of Computer graphics labBasics of Computer graphics lab
Basics of Computer graphics lab
 
Cg lab cse-v (1) (1)
Cg lab cse-v (1) (1)Cg lab cse-v (1) (1)
Cg lab cse-v (1) (1)
 
BASFIN 2: Quiz 3
BASFIN 2: Quiz 3BASFIN 2: Quiz 3
BASFIN 2: Quiz 3
 
Gauss in java
Gauss in javaGauss in java
Gauss in java
 
Cgm Lab Manual
Cgm Lab ManualCgm Lab Manual
Cgm Lab Manual
 
Volleyball fertig
Volleyball fertigVolleyball fertig
Volleyball fertig
 
Rumus VB Menghitung Nilai Persamaan
Rumus VB Menghitung Nilai PersamaanRumus VB Menghitung Nilai Persamaan
Rumus VB Menghitung Nilai Persamaan
 
Programming the BBC micro:bit with MicroPython by Dunham High School
Programming the BBC micro:bit with MicroPython by Dunham High SchoolProgramming the BBC micro:bit with MicroPython by Dunham High School
Programming the BBC micro:bit with MicroPython by Dunham High School
 
BASFIN 2 Finals reviewer [Computations]
BASFIN 2 Finals reviewer [Computations]BASFIN 2 Finals reviewer [Computations]
BASFIN 2 Finals reviewer [Computations]
 
7. chapter vi
7. chapter vi7. chapter vi
7. chapter vi
 
From Scratch to Snap! , what visual programming brings to my students.
From Scratch to Snap! , what visual programming brings to my students.From Scratch to Snap! , what visual programming brings to my students.
From Scratch to Snap! , what visual programming brings to my students.
 
My favorite slides
My favorite slidesMy favorite slides
My favorite slides
 
10CSL67 CG LAB PROGRAM 8
10CSL67 CG LAB PROGRAM 810CSL67 CG LAB PROGRAM 8
10CSL67 CG LAB PROGRAM 8
 
Programa expresiones regulares
Programa expresiones regularesPrograma expresiones regulares
Programa expresiones regulares
 
TensorFlow 深度學習快速上手班--電腦視覺應用
TensorFlow 深度學習快速上手班--電腦視覺應用TensorFlow 深度學習快速上手班--電腦視覺應用
TensorFlow 深度學習快速上手班--電腦視覺應用
 
The Tree of Babel
The Tree of BabelThe Tree of Babel
The Tree of Babel
 
Codecomparaison
CodecomparaisonCodecomparaison
Codecomparaison
 
pptuni1
pptuni1pptuni1
pptuni1
 
Matlab graphics
Matlab graphicsMatlab graphics
Matlab graphics
 
Drawoval
DrawovalDrawoval
Drawoval
 

Similar to Interactive Mouse (Report On Processing)

Getting Visual with Ruby Processing
Getting Visual with Ruby ProcessingGetting Visual with Ruby Processing
Getting Visual with Ruby Processing
Richard LeBer
 
P5js syracuse dev meetup 20181218
P5js syracuse dev meetup 20181218P5js syracuse dev meetup 20181218
P5js syracuse dev meetup 20181218
👨‍💻 Joshua Marris
 
Introduction to Generative Art with Processing
Introduction to Generative Art with ProcessingIntroduction to Generative Art with Processing
Introduction to Generative Art with Processing
stefk00
 
Learn Creative Coding: Begin Programming with the Processing Language
Learn Creative Coding: Begin Programming with the Processing LanguageLearn Creative Coding: Begin Programming with the Processing Language
Learn Creative Coding: Begin Programming with the Processing Language
shelfrog
 
Learn Creative Coding: Begin Programming with the Processing Language
Learn Creative Coding: Begin Programming with the Processing LanguageLearn Creative Coding: Begin Programming with the Processing Language
Learn Creative Coding: Begin Programming with the Processing Language
W M Harris
 
How to make a video game
How to make a video gameHow to make a video game
How to make a video game
dandylion13
 
Introduction to Coding
Introduction to CodingIntroduction to Coding
Introduction to Coding
Fabio506452
 
Language Language Models (in 2023) - OpenAI
Language Language Models (in 2023) - OpenAILanguage Language Models (in 2023) - OpenAI
Language Language Models (in 2023) - OpenAI
SamuelButler15
 
Building a Visualization Language
Building a Visualization LanguageBuilding a Visualization Language
Building a Visualization Language
jeresig
 
COMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUALCOMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUAL
Vivek Kumar Sinha
 
Processing and Processing.js
Processing and Processing.jsProcessing and Processing.js
Processing and Processing.js
jeresig
 
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and ScalaSierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala
Philip Schwarz
 
Java Fx Overview Tech Tour
Java Fx Overview Tech TourJava Fx Overview Tech Tour
Java Fx Overview Tech Tour
Carol McDonald
 
A Simple 3D Graphics Engine Written in Python and Allegro
A Simple 3D Graphics Engine Written in Python and AllegroA Simple 3D Graphics Engine Written in Python and Allegro
A Simple 3D Graphics Engine Written in Python and Allegro
snowfarthing
 
Introduction to programming - class 3
Introduction to programming - class 3Introduction to programming - class 3
Introduction to programming - class 3
Paul Brebner
 
用 OPENRNDR 將 Chatbot 訊息視覺化
用 OPENRNDR 將 Chatbot 訊息視覺化用 OPENRNDR 將 Chatbot 訊息視覺化
用 OPENRNDR 將 Chatbot 訊息視覺化
Shengyou Fan
 
ruby-efl-tutorial-hsyl20
ruby-efl-tutorial-hsyl20ruby-efl-tutorial-hsyl20
ruby-efl-tutorial-hsyl20tutorialsruby
 
ruby-efl-tutorial-hsyl20
ruby-efl-tutorial-hsyl20ruby-efl-tutorial-hsyl20
ruby-efl-tutorial-hsyl20tutorialsruby
 
Computer Graphics in Java and Scala - Part 1b
Computer Graphics in Java and Scala - Part 1bComputer Graphics in Java and Scala - Part 1b
Computer Graphics in Java and Scala - Part 1b
Philip Schwarz
 

Similar to Interactive Mouse (Report On Processing) (20)

Getting Visual with Ruby Processing
Getting Visual with Ruby ProcessingGetting Visual with Ruby Processing
Getting Visual with Ruby Processing
 
P5js syracuse dev meetup 20181218
P5js syracuse dev meetup 20181218P5js syracuse dev meetup 20181218
P5js syracuse dev meetup 20181218
 
Introduction to Generative Art with Processing
Introduction to Generative Art with ProcessingIntroduction to Generative Art with Processing
Introduction to Generative Art with Processing
 
Learn Creative Coding: Begin Programming with the Processing Language
Learn Creative Coding: Begin Programming with the Processing LanguageLearn Creative Coding: Begin Programming with the Processing Language
Learn Creative Coding: Begin Programming with the Processing Language
 
Learn Creative Coding: Begin Programming with the Processing Language
Learn Creative Coding: Begin Programming with the Processing LanguageLearn Creative Coding: Begin Programming with the Processing Language
Learn Creative Coding: Begin Programming with the Processing Language
 
How to make a video game
How to make a video gameHow to make a video game
How to make a video game
 
Introduction to Coding
Introduction to CodingIntroduction to Coding
Introduction to Coding
 
Language Language Models (in 2023) - OpenAI
Language Language Models (in 2023) - OpenAILanguage Language Models (in 2023) - OpenAI
Language Language Models (in 2023) - OpenAI
 
Building a Visualization Language
Building a Visualization LanguageBuilding a Visualization Language
Building a Visualization Language
 
COMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUALCOMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUAL
 
Processing and Processing.js
Processing and Processing.jsProcessing and Processing.js
Processing and Processing.js
 
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and ScalaSierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala
Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala
 
Java Fx Overview Tech Tour
Java Fx Overview Tech TourJava Fx Overview Tech Tour
Java Fx Overview Tech Tour
 
A Simple 3D Graphics Engine Written in Python and Allegro
A Simple 3D Graphics Engine Written in Python and AllegroA Simple 3D Graphics Engine Written in Python and Allegro
A Simple 3D Graphics Engine Written in Python and Allegro
 
Introduction to programming - class 3
Introduction to programming - class 3Introduction to programming - class 3
Introduction to programming - class 3
 
Tutorial flash
Tutorial flashTutorial flash
Tutorial flash
 
用 OPENRNDR 將 Chatbot 訊息視覺化
用 OPENRNDR 將 Chatbot 訊息視覺化用 OPENRNDR 將 Chatbot 訊息視覺化
用 OPENRNDR 將 Chatbot 訊息視覺化
 
ruby-efl-tutorial-hsyl20
ruby-efl-tutorial-hsyl20ruby-efl-tutorial-hsyl20
ruby-efl-tutorial-hsyl20
 
ruby-efl-tutorial-hsyl20
ruby-efl-tutorial-hsyl20ruby-efl-tutorial-hsyl20
ruby-efl-tutorial-hsyl20
 
Computer Graphics in Java and Scala - Part 1b
Computer Graphics in Java and Scala - Part 1bComputer Graphics in Java and Scala - Part 1b
Computer Graphics in Java and Scala - Part 1b
 

More from TongXu520

initial idea of Dissertation Proposal
initial idea of Dissertation Proposalinitial idea of Dissertation Proposal
initial idea of Dissertation Proposal
TongXu520
 
Case Study on Professional Issues of Interactive Media
Case Study on Professional Issues of Interactive MediaCase Study on Professional Issues of Interactive Media
Case Study on Professional Issues of Interactive Media
TongXu520
 
Sky Grid: Project for CSIS Cafe
Sky Grid: Project for CSIS CafeSky Grid: Project for CSIS Cafe
Sky Grid: Project for CSIS Cafe
TongXu520
 
Dissertation Proposal On Virtue&Meetup System
Dissertation Proposal On Virtue&Meetup SystemDissertation Proposal On Virtue&Meetup System
Dissertation Proposal On Virtue&Meetup System
TongXu520
 
Report On Pure Data and Gem
Report On  Pure Data and GemReport On  Pure Data and Gem
Report On Pure Data and Gem
TongXu520
 
Report On Arduino
Report On  ArduinoReport On  Arduino
Report On Arduino
TongXu520
 
Report On 3D Max
Report On 3D MaxReport On 3D Max
Report On 3D Max
TongXu520
 
Welcome to 3D Chatting (Flash Prtototyping Report1) Tong Xu
Welcome to 3D Chatting (Flash Prtototyping Report1)  Tong XuWelcome to 3D Chatting (Flash Prtototyping Report1)  Tong Xu
Welcome to 3D Chatting (Flash Prtototyping Report1) Tong XuTongXu520
 
Interactive Buttons (Flash Report1)
Interactive Buttons (Flash Report1)Interactive Buttons (Flash Report1)
Interactive Buttons (Flash Report1)TongXu520
 
Paper Prototyping On Virtual & Meetup System
Paper Prototyping On Virtual & Meetup SystemPaper Prototyping On Virtual & Meetup System
Paper Prototyping On Virtual & Meetup System
TongXu520
 

More from TongXu520 (10)

initial idea of Dissertation Proposal
initial idea of Dissertation Proposalinitial idea of Dissertation Proposal
initial idea of Dissertation Proposal
 
Case Study on Professional Issues of Interactive Media
Case Study on Professional Issues of Interactive MediaCase Study on Professional Issues of Interactive Media
Case Study on Professional Issues of Interactive Media
 
Sky Grid: Project for CSIS Cafe
Sky Grid: Project for CSIS CafeSky Grid: Project for CSIS Cafe
Sky Grid: Project for CSIS Cafe
 
Dissertation Proposal On Virtue&Meetup System
Dissertation Proposal On Virtue&Meetup SystemDissertation Proposal On Virtue&Meetup System
Dissertation Proposal On Virtue&Meetup System
 
Report On Pure Data and Gem
Report On  Pure Data and GemReport On  Pure Data and Gem
Report On Pure Data and Gem
 
Report On Arduino
Report On  ArduinoReport On  Arduino
Report On Arduino
 
Report On 3D Max
Report On 3D MaxReport On 3D Max
Report On 3D Max
 
Welcome to 3D Chatting (Flash Prtototyping Report1) Tong Xu
Welcome to 3D Chatting (Flash Prtototyping Report1)  Tong XuWelcome to 3D Chatting (Flash Prtototyping Report1)  Tong Xu
Welcome to 3D Chatting (Flash Prtototyping Report1) Tong Xu
 
Interactive Buttons (Flash Report1)
Interactive Buttons (Flash Report1)Interactive Buttons (Flash Report1)
Interactive Buttons (Flash Report1)
 
Paper Prototyping On Virtual & Meetup System
Paper Prototyping On Virtual & Meetup SystemPaper Prototyping On Virtual & Meetup System
Paper Prototyping On Virtual & Meetup System
 

Recently uploaded

DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 

Recently uploaded (20)

DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 

Interactive Mouse (Report On Processing)

  • 1. Report on Processing ---Tong Xu . My Experience on Processing Processing was the most difficult module for me because it needed the Java language, which was a brand new area for me. However, browsing the academic website (www.processing.org) was a perfect experience. On Exhibition, diverse examples and original ideas inspired me and aroused my interests in Java and Processing. What was more fortunate was that a collection of step-by-step lessons were available covering beginner, intermediate and advanced topics. And I found similar tutorials in Chinese, so it was relatively easier for me to learn processing. Processing is an important tool to make the 3-D chatting in my dissertation project more interactive and personalized. 1
  • 2. .The Process to Learn Processing 1. As a novice in Java and Processing, I began by downloading and installing processing software from processing.org. 2. First of all, I learnt how to change the size of window and draw shapes. The sketches were as follows: Figure 1 and 2 showed the sketches to run two points and one line respectively, and figure 3 displayed the line when I pressed the “run” button on the top left corner of sketch panel. “Size()” determined the size of window to show the objects or interactions, “point()” was decided by the coordinates on X and Y axis, and “line()” was formed of two points. After every command, a semicolon (;) was required to tell processing to perform the command. 2
  • 3. 3. Then I learnt the knowledge of digital color. This part was not difficult, as I had learnt in Photoshop. Generally speaking, 0 meant black and 255 meant white, 255 referred to 100% opacity and 0 referred to 100% transparency. In between, other numbers were a shade of grey or some percentage of opacity. However, how to set colors in Processing was what I needed to learn. When I made a shape, I needed to “fill()” it with some color or degree of opacity. In my project, there was a piece of command “fill(82,86,246,197)”, which referred that the color was purple (Red: 82, Green: 86, Blue: 246) and it had 75% opacity. 4. Making use of blocks like “setup()” and “draw()” were the condition to create animation and interactions. The “setup()” block ran alone and should be used for any initialization. The “draw()” block ran repeatedly and could be used to handle animation. 5. Then I learnt to take advantage of “x” “y” as variables, in which way users could be allowed to interact with input devices like the mouse or keyboard. In my project, I designed an interactive mouse. 3
  • 4. .The Explanation of the Project---Interactive Mouse The sketch of Interactive Mouse was as follows: void setup() { // The setup() block is used for initialization size(500, 500); // The project sets the window size to 50 } void draw() { // The draw() block is used to handle animation. background(0); //The background is set to black. float x = mouseX; // Value of X is assigned by the position of mouse on X axis. float y = mouseY; // Value of Y is assigned by the position of mouse on Y axis. rect(x, y, x+10, y+10); //A rectangle is set up. fill(238,231,35,200); // Interior of the shape is set to yellow and partial opacity. rect(x+10, y+10,x+10, y+10); // Another rectangle is set up. fill(82,86,246,191); //color: purple, partial opacity rect(x+20, y+20, x+10, y+10); // Another rectangle is set up. fill(81,235,92,180); //color: green, partial opacity rect(x+30,y+30,x+10, y+10); // Another rectangle is set up. fill(255,200,200,255); //color: pink, partial opacity stroke(255,128,0); //The outline is set to orange. (Red:255, Green:128, Blue:0) strokeWeight(5); //The width of stroke is set to 5. 4
  • 5. smooth(); //Shapes are drawn with smooth edges to enhance visual refinement. line(x, y, x+20, y-40); //A line is built. line(x+40, y, x+20, y-40); //Another line is forming an angle with previous one. } When I ran the sketch of the project, the movements of pictures in the window followed the position of the mouse. I would like to introduce interactive mouse in my dissertation project to offer fun to participants. The effects of my project were as follows: In the future, I will think of adding texts in the square to offer real-time messages to users. Please have fun with you play with it! 5