June 2021
Beginner to intermediate
600 pages
13h 50m
English

Before we dive into simulations, we need to understand the basics of graphical user interfaces (GUIs). This is a massive topic, and we’ll barely scratch the surface, but we’ll see enough for us to present our simulations to the user.
GUIs typically consist of a parent window (or windows) containing widgets the user can interact with, such as buttons or text fields. For our goal of drawing simulations, the widget we’re most interested in is the canvas. In a canvas we can draw geometric primitives, and we can redraw them many times per second, something that we’ll use to create the perception of motion. ...
Read now
Unlock full access