Learn creative coding writing simple programs
52. The drunk camera man effect
Discover how to read the width and height of a loaded image. We use this information to get random rectangular parts of that loaded image while staying inside it.
Code editor
You can make changes to the code below. Then
Reference
background
copy
draw
float
height
int
line
loadImage
map
noise
PImage
setup
size
stroke
void
width
background
copy
draw
float
height
int
line
loadImage
map
noise
PImage
setup
size
stroke
void
width
Try to stay close to the topic of this episode. Use the Processing forums for help with unrelated Processing projects (or hire me for help ;-)
To indicate that a word in your comment is code, use the `backtick`. Example
Do `float` and `int` smell similar?
To highlight code blocks, surround it with ``` code-fences ``` like this:``` void setup() { size(600, 600); } ```