mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
* to blur the image.
|
||||
*/
|
||||
|
||||
// @pjs preload must be used to preload media if the program is
|
||||
// running with Processing.js
|
||||
// The next line is needed if running in JavaScript Mode with Processing.js
|
||||
/* @pjs preload="moon.jpg"; */
|
||||
|
||||
float v = 1.0 / 9.0;
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
* calculating the distance of each pixel to the mouse.
|
||||
*/
|
||||
|
||||
// @pjs preload must be used to preload media if the program is
|
||||
// running with Processing.js
|
||||
// The next line is needed if running in JavaScript Mode with Processing.js
|
||||
/* @pjs preload="moon-wide.jpg"; */
|
||||
|
||||
PImage img;
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
*/
|
||||
|
||||
|
||||
// @pjs preload must be used to preload media if the program is
|
||||
// running with Processing.js
|
||||
// The next line is needed if running in JavaScript Mode with Processing.js
|
||||
/* @pjs preload="moon-wide.jpg"; */
|
||||
|
||||
PImage img;
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
* the image.
|
||||
*/
|
||||
|
||||
// @pjs preload must be used to preload media if the program is
|
||||
// running with Processing.js
|
||||
// The next line is needed if running in JavaScript Mode with Processing.js
|
||||
/* @pjs preload="moon.jpg"; */
|
||||
|
||||
float[][] kernel = {{ -1, -1, -1},
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
* translation along z axis.
|
||||
*/
|
||||
|
||||
// @pjs preload must be used to preload media if the program is
|
||||
// running with Processing.js
|
||||
// The next line is needed if running in JavaScript Mode with Processing.js
|
||||
/* @pjs preload="eames.jpg"; */
|
||||
|
||||
PImage img; // The source image
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
* since most images will no longer be full 24-bit color.
|
||||
*/
|
||||
|
||||
// @pjs preload must be used to preload media if the program is
|
||||
// running with Processing.js
|
||||
// The next line is needed if running in JavaScript Mode with Processing.js
|
||||
/* @pjs preload="frontier.jpg"; */
|
||||
|
||||
size(640, 360);
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
* Press and hold any key to watch the scanning.
|
||||
*/
|
||||
|
||||
// @pjs preload must be used to preload media if the program is
|
||||
// running with Processing.js
|
||||
// The next line is needed if running in JavaScript Mode with Processing.js
|
||||
/* @pjs preload="sea.jpg"; */
|
||||
|
||||
PImage img;
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
* and displays this color to fill the window.
|
||||
*/
|
||||
|
||||
// @pjs preload must be used to preload media if the program is
|
||||
// running with Processing.js
|
||||
// The next line is needed if running in JavaScript Mode with Processing.js
|
||||
/* @pjs preload="sea.jpg"; */
|
||||
|
||||
PImage img;
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
* heights corresponding to a color value read from an image.
|
||||
*/
|
||||
|
||||
// @pjs preload must be used to preload media if the program is
|
||||
// running with Processing.js
|
||||
// The next line is needed if running in JavaScript Mode with Processing.js
|
||||
/* @pjs preload="ystone08.jpg"; */
|
||||
|
||||
PImage img;
|
||||
|
||||
Reference in New Issue
Block a user