Tag: Java
-
Drawing random shapes using probability in Processing
Learn how to use random numbers and probability to draw random shapes in Processing using the Java programming language.
-
Snapping images to a grid in Processing
Learn how to draw a grid and snap images to the grid using Processing and Java. Easily portable to other programming languages.
-
Processing game: cat and mouse part 2
In this tutorial we will make the game more challenging and fun by adding more cats at random positions and increasing the cat speed over time. You will learn how to organise and reuse your code by using tabs, lists and classes in Processing with Java.
-
Creating a cat and mouse game in Processing
This tutorial will teach you how to create a cat and mouse game in Processing using Java. You will control the mouse, and try to survive against the hungry and angry cats! You will learn how to code the movement for a player and enemies in a game using vector math. We will use circles…
-
Processing paint program: Save an image
This tutorial leads on from the last tutorial about creating an eraser. We will add a save image function so we can save our masterpieces more easily! You will learn about characters and strings. Then how to give each saved image a unique name, so they don’t overwrite each other. We will also save each…
-
Processing paint program: Creating an eraser
This tutorial teaches you how to add an eraser to the paint program, and follows on from the last tutorial about changing the brush size. We will also pick better colors, which aren’t so bright.
-
Processing paint program: Changing the brush size
This tutorial leads on from the last tutorial, where we created a basic paint program. We are now going to improve our paint program by adding some new features. The user will be able to change the brush size and clear the screen.
-
Creating a painting program in Processing
This tutorial will show you how to create a painting program in Processing. You will learn how to draw shapes using mouse input. You will use keyboard input to change the colour and the type of shape to draw. You will learn about if statements, how to create your own functions and how to create…
-
Creating a animated mosaic pattern in Processing
This tutorial will show you how quick and easy it is to use Processing and Java to create art using code. You will learn how to create a beautiful animated mosaic pattern. No prior knowledge of coding is required. All you need is a willingness to learn.