5 Reasons Processing is Useful for Those Who Want to Get Started with Python

Introduction

Processing is famous as a Java-based tool that even beginners of programming can easily learn, but I found it to be a very useful tool for those who want to start Python, so I summarized the reason.

Why Processing is so convenient

❶ Easy environment construction

Originally, Processing is a Java-based tool that enables visual representation with very little code. As a result, installation is also fairly easy. This time, just install the Python IDE after the normal Processing installation.

Click here to download Processing (both Windows Mac can be used) https://processing.org/download/

Install Python mode (this link is easy to understand with images) https://pycarnival.com/processingpy1/

❷ Easy to visualize

processing2.gif

In order to learn the basic loop processing of Python and how to create classes, it is convenient to be able to visualize how each works, but since Processing is specialized for drawing, how the repetition is reflected in the processing. It is convenient to see if.

❸ Easy handling of key mouse input, etc.

I often use opencv to handle key input and mouse input in python, cv2.waitKey is unresponsive and it's hard to explain the concept of mouse callbacks all at once.

processing1.gif

Processing is easy because variables such as key and mouseX are predefined and are constantly updated outside the draw function.

❹ Shader can also be executed

You can run the GLSL shader with the default installation in both Java and Python with Processing. processing_shader2.jpg Here is the short code for GLSL execution when written in Java, and the right is Python. If you try to do it without Processing, you may get an error depending on the environment when installing PyOpenGL. This is very simple, as there is a lot of spell code.

Here's how to run it in Java and Python. https://qiita.com/mizumasa/items/887c4e85c688a2b0d5f1

❺ Samples are included as standard

If you install Python mode, you can see some samples from the "files" in the upper left.

スクリーンショット 2019-01-06 16.18.49.png

Unfortunately

It's a prototype tool, so it's too much to ask for, but numpy, matplotlib, etc. cannot be used, so it's still not enough to try development using Python in earnest.

Also, since there are few tutorials in Japanese at present, I think that it is a useful tool for people who can actually use Python to teach Python.

However, in order to learn how to write Python-specific code, the graphic display is easy and the output feels easy to understand, so I thought it would be very attractive as a tool to prevent stumbling.

Summary

So far, I've just mentioned the useful points of the original Processing, It makes up for the weak points of Python, and I would like to recommend Processing to both those who want to start using Python for studying numerical analysis and machine learning in the future, those who want to enter from Processing and study Python. I will.

Recommended Posts

5 Reasons Processing is Useful for Those Who Want to Get Started with Python
For those who want to learn Excel VBA and get started with Python
For those who want to write Python with vim
Python techniques for those who want to get rid of beginners
Link to get started with python
For those who want to start machine learning with TensorFlow2
The first step of machine learning ~ For those who want to implement with python ~
❤️ Bloggers ❤️ "Beloved BI" ❤️ Let's get started ❤️ (For those who can make charts with Python)
Environment construction for those who want to study python easily with VS Code (for Mac)
Loose articles for those who want to start natural language processing
[Short sentence] easygui for those who want to use a simple GUI with Python very easily
A layman wants to get started with Python
Let's get started with Python 3. ~ For kittens who are wondering what to choose as their main language ~
Getting Started with Processing and p5.js (for those who have done other languages) 02
Tips for those who are wondering how to use is and == in Python
Join Azure Using Go ~ For those who want to start and know Azure with Go ~
Getting Started with Processing and p5.js (for those who have done other languages) 01
I tried to get started with blender python script_Part 01
I tried to get started with blender python script_Part 02
Anxible points for those who want to introduce Ansible
I want to get started with the Linux kernel, what is the list head structure?
Sample code to get started with GLSL shaders in Processing (either Java or Python)
For those who are new to programming but have decided to analyze data with Python
Get started with Python! ~ ② Grammar ~
For those who should have installed janome properly with Python but get an error
Minimum knowledge to get started with the Python logging module
Reference reference for those who want to code in Rhinoceros / Grasshopper
For those who are in trouble because NFC is read infinitely when reading NFC with Python
For those who want to display images side by side as soon as possible with Python's matplotlib
Get started with Python! ~ ① Environment construction ~
Getting Started with Python for PHPer-Classes
How to get started with Scrapy
How to get started with Django
I want to debug with Python
Getting Started with Python for PHPer-Functions
Get started with Python in Blender
PyPI registration steps for those who want to make a PyPI debut
[Python] A memo that I tried to get started with asyncio
Python environment construction 2016 for those who aim to be data scientists
A memo for those who want quick socket communication with netcat
I want to get angry with my mom when my memory is tight
Step notes to get started with django
Memo to ask for KPI with python
I tried to get started with Hy
I want to analyze logs with Python
I analyzed Airbnb data for those who want to stay in Amsterdam
I want to play with aws with python
[Python] Script useful for Excel / csv processing
Getting Started with Python for PHPer-Super Basics
Get Started with TopCoder in Python (2020 Edition)
How Python beginners get started with Python with Progete
How to get started with laravel (Linux)
[Blender x Python] Let's get started with Blender Python !!
For those who want to perform natural language processing using WikiPedia's knowledge that goes beyond simple keyword matching
How to get started with the 2020 Python project (windows wsl and mac standardization)
AssertNumQueries is useful if you want to easily test N + 1 queries with django
How to replace with Pandas DataFrame, which is useful for data analysis (easy)
[Solved] I have a question for those who are familiar with Python mechanize.
[Introduction to Python] How to get the index of data with a for statement
Getting started with Python with 100 knocks on language processing
Python hand play (let's get started with AtCoder?)