Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
p5js-photos [2024/02/22 00:55] – created renick | p5js-photos [2024/03/13 07:55] – renick | ||
---|---|---|---|
Line 13: | Line 13: | ||
{{:: | {{:: | ||
- | ==== Headline ==== | + | Then click the ' |
+ | {{:: | ||
+ | |||
+ | ==== displaying the image ==== | ||
+ | |||
+ | The loadImage function lets us get the image into p5js, and the image function lets us display it. It's like this: | ||
+ | |||
+ | < | ||
+ | <iframe src=" | ||
+ | </ | ||
+ | |||
+ | ==== getting part of the image and displaying it ==== | ||
+ | |||
+ | We use the ' | ||
+ | |||
+ | < | ||
+ | <iframe src=" | ||
+ | </ | ||
+ | |||
+ | ==== repeating part of the image ==== | ||
+ | |||
+ | We can repeat that part of the image easily using the Point class and the buildArray tools that we have studied earlier. Take a look at how this works: | ||
+ | |||
+ | < | ||
+ | <iframe src=" | ||
+ | </ |