Pular para o conteúdo principal

Postagens

Mostrando postagens com o rótulo processing

Quick visual effects apps development with JavaFX

Processing is a great programming language based on Java with versions for Javascript and for Python. If you don't know it, just watch a few Daniel Shiffman videos to quickly fall in love with this technology. I talked about processing and JavaFX in this post . JavaFX is great as well and it is available in the JDK 1.8 - which means that no external libraries is required to create JavaFX applications. In this article I will show you a class I have been using to approach JavaFX to the Processing programming style. This is not intended to have processing running on top of JavaFX. Processing is big and I would take a few days porting all methods and classes to a JavaFX app. The idea is quickly start drawing instead have to create stage, initializing, etc. Of course, the code is on github, so if you want to contribute a PR is more than welcome! So the idea is: Extend a class; Override setup method to define app title, frames, width, height; Override draw to animate things ...

Stacker Game in JavaFX

In this post I am going to share with you this simple game I created using JavaFX. The Stacker game The goal of the game is to reach the top by stacking rectangles. This is a well known game where when you reach the top you earn some gifts. Here is a video I took from youtube of someone playing this game: Our game is a little different. We will will only stack 1 rectangle, but the rectangle can be adjacent of the below rect, not exactly on top of it. The number of rectangles to fill will be increasing according to the level and also the speed. The game in Processing The game was previously created in Processing , but most of the code I could reuse in the JavaFX version! You can find the source for the processing version in my github . Creating games with JavaFX JavaFX was always a platform for games since its 1.0 version. I remember we even had a blog specific for JavaFX script games . Since the end of JavaFX Script and with JavaFX 2, we have some samples that m...

My experience with Processing programming language (and JavaFX X Processing)

Processing is the main language used to create Arduino code . It is also a great language to create visual applications . In this post I am going to share you some processing sketches I created and the way to follow if you are looking to have fun with this great programming language based in Java. Having fun with processing Simplicity is the word for processing. You can sit, open the IDE, have some random idea and in a few minutes you will implement it. Here are some random fun stuff I created in a few minutes Spiral As a first test with angular motion, I created a sketch to draw lines which when connected create a spiral: TV out of tune To experiment the noise function, a sketch using this function was to simulate an old TV of tune effect: "The Thing" Angular motion is always exciting. In this example I created a class called TheThing, which makes use of angular motion. I won't post all the code here, but you can see in my github . Particle gen...