This example shows how to show a color on jit.pwindow by using jit.matrix.
Once you get to a large number of booleans, you might want to pack all those 0/1 states together as a single integer and use that integer to look up a behavior. Here’s an example using four booleans; extend and alter to suit your needs.
This example shows how to change the size and rotation position of an image or video displayed using Jitter. The x-y orientation of the image is manipulated via the rotate message sent to jit.gl.videoplane and the size of the image is altered via the camera message sent to jit.gl.render.
For this example to work properly, you will also need to download the small image file "guitariste.jpg".
This patch demonstrates a way to generate random numbers within a specified range.
The jit.lcd object understands a variety of command messages for drawing simple things such as lines, geometric shapes, text, and pictures any place in a matrix.
This patch does some of the same things as the "GlobalTransport" patch in the Extras menu, and shows what is likely going on behind the scenes in that patch. The toggle labeled "Start/Stop" starts the transport and immediately turns on the metro to begin triggering time reports. The button labeled "Rewind" sends a time position of bar 1, beat 1, 0 ticks to the transport to reset its time.