Skip to content

Commit dd2b4c5

Browse files
authored
Merge pull request #219 from processing/text-updates
Adding back removed comments from examples
2 parents d0e0464 + 39ab070 commit dd2b4c5

File tree

6 files changed

+53
-0
lines changed

6 files changed

+53
-0
lines changed

content/examples/Basic Examples/Image/AlphaMask/AlphaMask.pde

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Alpha Mask.
3+
*
4+
* Loads a "mask" for an image to specify the transparency
5+
* in different parts of the image. The two images are blended
6+
* together using the mask() method of PImage.
7+
*/
8+
19
PImage img;
210
PImage imgMask;
311

content/examples/Basic Examples/Image/BackgroundImage/BackgroundImage.pde

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Background Image.
3+
*
4+
* This example presents the fastest way to load a background image
5+
* into Processing. To load an image as the background, it must be
6+
* the same width and height as the program.
7+
*/
8+
19
PImage bg;
210
int y;
311

content/examples/Basic Examples/Image/CreateImage/CreateImage.pde

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* Create Image.
3+
*
4+
* The createImage() function provides a fresh buffer of pixels to play with.
5+
* This example creates an image gradient.
6+
*/
7+
18
PImage img;
29

310
void setup() {

content/examples/Basic Examples/Image/Pointillism/Pointillism.pde

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/**
2+
* Pointillism
3+
* by Daniel Shiffman.
4+
*
5+
* Mouse horizontal location controls size of dots.
6+
* Creates a simple pointillist effect using ellipses colored
7+
* according to pixels in an image.
8+
*/
9+
110
PImage img;
211
int smallPoint, largePoint;
312

content/examples/Basic Examples/Image/RequestImage/RequestImage.pde

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
/**
2+
* Request Image
3+
* by Ira Greenberg ( From Processing for Flash Developers).
4+
*
5+
* Shows how to use the requestImage() function with preloader animation.
6+
* The requestImage() function loads images on a separate thread so that
7+
* the sketch does not freeze while they load. It's very useful when you are
8+
* loading large images.
9+
*
10+
* These images are small for a quick download, but try it with your own huge
11+
* images to get the full effect.
12+
*/
13+
114
int imgCount = 12;
215
PImage[] imgs = new PImage[imgCount];
316
float imgW;

content/examples/Basic Examples/Image/Transparency/Transparency.pde

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Transparency.
3+
*
4+
* Move the pointer left and right across the image to change
5+
* its position. This program overlays one image over another
6+
* by modifying the alpha value of the image with the tint() function.
7+
*/
8+
19
PImage img;
210
float offset = 0;
311
float easing = 0.05;

0 commit comments

Comments
 (0)