From 3b8f5323e730900a6794705f53c25a37817701ad Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Fri, 14 Aug 2020 05:56:12 -0300 Subject: [PATCH 01/47] Update default.html --- _layouts/default.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index 38c85c6..283c23f 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,16 +1,16 @@ - + + {% if page.title %}{{ page.title }} | {% endif %}Processing.js - - - + + + - - - - - + + + + + + +
- +
a port of the Processing Visualization Language
@@ -52,49 +39,50 @@ {{ content }}
- + Fork me on GitHub From 8133e0cc19d11ecc3e791f2d702a6bf3b85361b5 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Fri, 14 Aug 2020 06:36:36 -0300 Subject: [PATCH 04/47] Update default.html --- _layouts/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/default.html b/_layouts/default.html index 93daff6..8340d48 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -2,7 +2,7 @@ - + {% if page.title %}{{ page.title }} | {% endif %}Processing.js From 49448c148552eb2dd121bbfe35a98bfb517a8027 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Fri, 14 Aug 2020 06:40:06 -0300 Subject: [PATCH 05/47] Update default.html --- _layouts/default.html | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index 8340d48..f741c62 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -7,31 +7,31 @@ - + - - + +
- +
a port of the Processing Visualization Language
@@ -39,23 +39,23 @@ {{ content }}
From 77768cd2e0066f3e962aa7c0d96754973df52790 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Fri, 14 Aug 2020 06:56:18 -0300 Subject: [PATCH 09/47] Update index.html --- index.html | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/index.html b/index.html index a19ccdf..357625e 100644 --- a/index.html +++ b/index.html @@ -3,23 +3,23 @@ ---
- - Virion + + Virion

by Jonah Kagan, Varun Singh, Jonathan Koh, Charis Loke

- - Fizz + + Fizz

by Bloom

- - Letter-pairs Analysis + + Letter-pairs Analysis

by Martin Ignacio Bereciartua

-

Latest release: Processing.js v1.6.0

+

Latest release: Processing.js v1.6.6

Updates have been trickling in over the last few releases, and while the original dev team for Processing.js moved on, there are a number of enthusiastic users who have been finding problems with the library and have been @@ -39,14 +39,14 @@

Want to help out?

About Processing.js

-

Processing.js is a project based on the popular Processing +

Processing.js is a project based on the popular Processing visual programming language, designed to bring Processing sketches to the web without a need for special browser plugins. Processing.js makes your data visualizations, digital art, interactive animations, educational graphs, video games, etc. work using web standards and without any plug-ins. You write code using the Processing language, include it in your web page, and Processing.js does the rest. It's not magic, but it's close.

-

Originally developed by Ben Fry and +

Originally developed by Ben Fry and Casey Reas, Processing started as an open source programming language based on Java to help the electronic arts and visual design communities learn the basics of computer programming in a visual context. Processing.js takes this to the next level, allowing Processing code to be run @@ -54,14 +54,14 @@

About Processing.js

Internet Explorer. Processing.js brings the best of visual programming to the web, both for Processing and web developers.

-

Everything you need to work with Processing.js is here. You can download +

Everything you need to work with Processing.js is here. You can download the most recent version of Processing.js, read Quick Start Guides for -Processing Developers or -JavaScript Developers, -learn about the Processing language and Processing.js -render modes, consult the -Reference, and of course view many existing demos -that use Processing.js. You can also get involved with the Processing +Processing Developers or +JavaScript Developers, +learn about the Processing language and Processing.js +render modes, consult the +Reference, and of course view many existing demos +that use Processing.js. You can also get involved with the Processing and Processing.js communities, both of which are active and and looking for new users and developers.

Whether you're an advanced Processing developer or completely new, whether you're a pro with @@ -72,19 +72,19 @@

Processing.js Example

- + -

My Life Aquatic (2012) -by David Leibovic and Sunah Suh
-Koi designed by nardove

+

My Life Aquatic (2012) +by David Leibovic and Sunah Suh
+Koi designed by nardove

From d672a9f3adba2b8b55482bbab160c53b3c025f84 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Fri, 14 Aug 2020 07:20:11 -0300 Subject: [PATCH 10/47] Update 2011-12-01-PomaxGuide.html --- articles/_posts/2011-12-01-PomaxGuide.html | 42 +++++++++++----------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/articles/_posts/2011-12-01-PomaxGuide.html b/articles/_posts/2011-12-01-PomaxGuide.html index 96b91b6..f569f68 100644 --- a/articles/_posts/2011-12-01-PomaxGuide.html +++ b/articles/_posts/2011-12-01-PomaxGuide.html @@ -2,7 +2,7 @@ layout: default desc: Pomax's guide to Processing.js title: Pomax Guide -permalink: /articles/PomaxGuide.html +permalink: ./articles/PomaxGuide.html --- - + + From b584bf0b4f65b46fe6bf6d8bd54b19f5edf07df3 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Fri, 14 Aug 2020 08:24:05 -0300 Subject: [PATCH 19/47] Update template.html --- articles/_posts/template.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/_posts/template.html b/articles/_posts/template.html index ac06e5f..47a4f70 100644 --- a/articles/_posts/template.html +++ b/articles/_posts/template.html @@ -2,6 +2,6 @@ layout: default desc: Guide description title: Guide Title -permalink: /articles/LinkToArticle.html +permalink: ./articles/LinkToArticle.html ---

This is my lovely article about something related to Processing.js

From 9599ae79e60899d5b6419ee5452fa9b36cda9d17 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Fri, 14 Aug 2020 08:26:19 -0300 Subject: [PATCH 20/47] Update index.html --- articles/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/index.html b/articles/index.html index 323accf..29d726f 100644 --- a/articles/index.html +++ b/articles/index.html @@ -6,7 +6,7 @@

Articles

From 77a84cc8cb0523b2d0a6e33bfc30ad06f098e1b8 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Sat, 26 Dec 2020 19:10:45 -0300 Subject: [PATCH 21/47] ./reference/ to ./ --- reference/index.html | 640 +++++++++++++++++++++---------------------- 1 file changed, 320 insertions(+), 320 deletions(-) diff --git a/reference/index.html b/reference/index.html index 11f0c4d..c6e217a 100644 --- a/reference/index.html +++ b/reference/index.html @@ -15,145 +15,145 @@

Reference

@@ -161,108 +161,108 @@
Logical Operators
@@ -335,139 +335,139 @@
Material Properties
From e62ebd95afa8027c219f6f623e92f4bb739aa46e Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Sat, 26 Dec 2020 19:21:44 -0300 Subject: [PATCH 22/47] --- reference/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reference/index.html b/reference/index.html index c6e217a..423bf89 100644 --- a/reference/index.html +++ b/reference/index.html @@ -2,6 +2,8 @@ layout: withcc title: reference --- + +

Reference

This page references all the commands available to Processing.js. Regular Javascript commands will work in Processing.js script.

From 1762538105927aa2be6dd7414648e67138369bd1 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Sat, 26 Dec 2020 19:45:45 -0300 Subject: [PATCH 23/47] url: /processing-js.github.io/ --- _config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/_config.yml b/_config.yml index 93a2530..1eb1c01 100644 --- a/_config.yml +++ b/_config.yml @@ -2,3 +2,4 @@ safe: true lsi: false highlighter: rouge +url: /processing-js.github.io/ From 5be81e4046e5775902e970a6382a7a8083206140 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Sat, 26 Dec 2020 19:47:23 -0300 Subject: [PATCH 24/47] --- _layouts/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/default.html b/_layouts/default.html index 707042e..8c4b9c4 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -2,7 +2,7 @@ - + {% if page.title %}{{ page.title }} | {% endif %}Processing.js From 0c9ba618c42d726cd70a772880f2c740ca913dd5 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Sat, 26 Dec 2020 19:58:19 -0300 Subject: [PATCH 25/47] Reverting to no local --- reference/index.html | 642 +++++++++++++++++++++---------------------- 1 file changed, 320 insertions(+), 322 deletions(-) diff --git a/reference/index.html b/reference/index.html index 423bf89..11f0c4d 100644 --- a/reference/index.html +++ b/reference/index.html @@ -2,8 +2,6 @@ layout: withcc title: reference --- - -

Reference

This page references all the commands available to Processing.js. Regular Javascript commands will work in Processing.js script.

@@ -17,145 +15,145 @@

Reference

@@ -163,108 +161,108 @@
Logical Operators
@@ -337,139 +335,139 @@
Material Properties
From 8dcde2dd2604c629c15c112c80d491859d088acd Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Sat, 26 Dec 2020 19:59:41 -0300 Subject: [PATCH 26/47] --- _layouts/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/default.html b/_layouts/default.html index 8c4b9c4..f9a620d 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -2,7 +2,7 @@ - + {% if page.title %}{{ page.title }} | {% endif %}Processing.js From 438ef683f3aa0f3789e721d9019168a8921875d6 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Sat, 26 Dec 2020 20:01:03 -0300 Subject: [PATCH 27/47] --- _layouts/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/default.html b/_layouts/default.html index f9a620d..c602f30 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -2,7 +2,7 @@ - + {% if page.title %}{{ page.title }} | {% endif %}Processing.js From c3ff83d1724a5a0328e38075b0fad31ba7cefdb9 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Sat, 26 Dec 2020 20:27:36 -0300 Subject: [PATCH 28/47] Update index.html --- reference/HALF_PI/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/HALF_PI/index.html b/reference/HALF_PI/index.html index 561b8cc..2a2b745 100644 --- a/reference/HALF_PI/index.html +++ b/reference/HALF_PI/index.html @@ -20,7 +20,7 @@ Examples -
example pic
float f = 0.0;
+		
example pic
float f = 0.0;
 
 beginShape(POLYGON);
 
@@ -100,9 +100,9 @@
 
 		Related
 
-		PI
+ PI
- TWO_PI
+ TWO_PI
From 54da7a30ed9029e3f45d99cc10a835e1483e53b1 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Sat, 26 Dec 2020 20:33:09 -0300 Subject: [PATCH 29/47] Update index.html --- reference/HashMap/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/HashMap/index.html b/reference/HashMap/index.html index 866c17f..01e8959 100644 --- a/reference/HashMap/index.html +++ b/reference/HashMap/index.html @@ -38,7 +38,7 @@ Constructor
HashMap()

HashMap(initialCapacity)

-
HashMap(initialCapacity,loadFactor)

+
HashMap(initialCapacity, loadFactor)

HashMap(m)

From 78116820ba7adf4817614f4918ced00a5e1941a1 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Sat, 26 Dec 2020 20:34:11 -0300 Subject: [PATCH 30/47] Update index.html --- reference/Object/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/Object/index.html b/reference/Object/index.html index 3b26e82..448ca27 100644 --- a/reference/Object/index.html +++ b/reference/Object/index.html @@ -154,7 +154,7 @@ Related - class
+ class
From e50785b2582c6c403a0764dcd0aecbb268761fca Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Sat, 26 Dec 2020 21:00:24 -0300 Subject: [PATCH 31/47] Update index.html --- reference/PFont/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reference/PFont/index.html b/reference/PFont/index.html index d61b8bb..08bf90d 100644 --- a/reference/PFont/index.html +++ b/reference/PFont/index.html @@ -10,13 +10,13 @@ Processing.js Behavior Font support for the Canvas element varies across browsers. FireFox currently has the best support, but still uses a pre-defined set of fonts. (Documentation to follow soon.) Good alternatives to the browser's Canvas-font functions are available: such as the Glyph method. See also: Canvas Text, BurntToys Bauhaus. -

Please use the following demos to learn how fonts can be rendered in Firefox with Processing.js: Letters, Words, width()

+

Please use the following demos to learn how fonts can be rendered in Firefox with Processing.js: Letters, Words, textWidth()

Examples -
example pic
PFont font;
+		
example pic
PFont font;
 // The font must be located in the sketch's 
 // "data" directory to load successfully
 font = loadFont("FFScala.ttf"); 
@@ -37,7 +37,7 @@
 		Methods
 		
-				
+				
 		
@@ -69,8 +69,8 @@
 
 	
-		
+		
PFont_list()PFont.list() Gets a list of the fonts installed on the system.
RelatedloadFont()
- textFont()
- createGraphics()
loadFont()
+ textFont()
+ createGraphics()
From a292c7b9c61da737a59b09600de57c359fc33ca1 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Wed, 30 Dec 2020 05:31:10 -0300 Subject: [PATCH 32/47] Update index.html --- reference/PFont_list_/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/PFont_list_/index.html b/reference/PFont_list_/index.html index da9f992..ba3e55c 100644 --- a/reference/PFont_list_/index.html +++ b/reference/PFont_list_/index.html @@ -14,7 +14,7 @@ Processing.js Behavior Font support for the Canvas element varies across browsers. FireFox currently has the best support, but still uses a pre-defined set of fonts. (Documentation to follow soon.) Good alternatives to the browser's Canvas-font functions are available: such as the Glyph method. See also: Canvas Text, BurntToys Bauhaus. -

Please use the following demos to learn how fonts can be rendered in Firefox with Processing.js: Letters, Words, width()

+

Please use the following demos to learn how fonts can be rendered in Firefox with Processing.js: Letters, Words, textWidth()

From a6bd1dde44ac79073321dc9faeb49f8aa327c9e5 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Wed, 30 Dec 2020 05:36:16 -0300 Subject: [PATCH 33/47] Update index.html --- reference/pjs directive/index.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/reference/pjs directive/index.html b/reference/pjs directive/index.html index 7e392d9..5d3da1d 100644 --- a/reference/pjs directive/index.html +++ b/reference/pjs directive/index.html @@ -34,9 +34,9 @@

As Processing.js offers a tighter integration between Processing sketches and webpages than the traditional applet approach, certain functions that are normally regulated by Processing are left to be handled by the browser. This approach means that certain behaviour that is expected from a sketch may not work without additional "outside the sketch" instructions, for which /* @pjs */ directives must be used. There - are two types of directives: directives that tell Processing.js to buffer data that must be available to a sketch when it is run (preload, - font), and directives that tell Processing.js how to behave once the sketch is running (crisp, - globalKeyEvents, pauseOnBlur).

+ are two types of directives: directives that tell Processing.js to buffer data that must be available to a sketch when it is run (preload, + font), and directives that tell Processing.js how to behave once the sketch is running (crisp, + globalKeyEvents, pauseOnBlur).

These directives are in block comment syntax so that they do not interfere with a sketch when it runs as native Processing, but if you do not wish to pollute your source with @pjs directives, you can also store your directives in a separate file, and only call this file on your page:

directives.pde:

@@ -87,11 +87,11 @@ Related - font -
crisp -
pauseOnBlur -
globalKeyEvents -
preload + font +
crisp +
pauseOnBlur +
globalKeyEvents +
preload From 3df2baa9e730ae2c57b97f626cdd596d82f47634 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Wed, 30 Dec 2020 05:47:03 -0300 Subject: [PATCH 34/47] Update index.html --- reference/preload/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reference/preload/index.html b/reference/preload/index.html index cd30749..bf7714a 100644 --- a/reference/preload/index.html +++ b/reference/preload/index.html @@ -30,7 +30,7 @@ Description -

This directive regulates image preloading, which is required when using loadImage() or requestImage() in a sketch. +

This directive regulates image preloading, which is required when using loadImage() or requestImage() in a sketch. Using this directive will preload all images indicated between quotes, and comma separated if multiple images are used, so that they will be ready for use when the sketch begins running. As resources are loaded via the AJAX approach, not using this directive will result in the sketch loading an image, and then immediately trying to use this image in some way, even though the browser has not finished downloading and caching it. Images @@ -80,9 +80,9 @@ Related - @pjs directives -
loadImage() -
requestImage() + @pjs directives +
loadImage() +
requestImage() - \ No newline at end of file + From 77f58c0eb60789210a2f994256b5a451deabf0c9 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Wed, 30 Dec 2020 05:51:13 -0300 Subject: [PATCH 35/47] Update index.html --- reference/font/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/font/index.html b/reference/font/index.html index 197025e..ec01b14 100644 --- a/reference/font/index.html +++ b/reference/font/index.html @@ -34,7 +34,7 @@ Description

If you wish to use custom fonts in your sketch, these must be preloaded using the font @pjs directive. Preloading fonts uses its own command, - rather than the standard preload command, because unlike images a font must not just be cached, but must also be loaded into memory for the browser + rather than the standard preload command, because unlike images a font must not just be cached, but must also be loaded into memory for the browser to make use of. Processing.js does this by relying on the browser to load the font via a CSS @font-face rule. While most browsers support a large number of font formats for use with @font-face (woff, svg, eot, ttf and otf), relying on "truetype" (ttf) and "opentype" (otf) font formats offer the greatest interoperability between Processing and Processing.js.

@@ -90,8 +90,8 @@ Related - @pjs directives -
createFont() + @pjs directives +
createFont() - \ No newline at end of file + From ef0fa64cefd65589b503400956f5e0f703f41203 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Wed, 30 Dec 2020 05:52:54 -0300 Subject: [PATCH 36/47] Update index.html --- reference/globalKeyEvents/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/globalKeyEvents/index.html b/reference/globalKeyEvents/index.html index 85c3a25..9c2620b 100644 --- a/reference/globalKeyEvents/index.html +++ b/reference/globalKeyEvents/index.html @@ -120,7 +120,7 @@ Related - @pjs directives + @pjs directives From 8c49ccac27c06f4f36ac38f9cdb733883481af6d Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Wed, 30 Dec 2020 05:54:08 -0300 Subject: [PATCH 37/47] Update index.html --- reference/pauseOnBlur/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/pauseOnBlur/index.html b/reference/pauseOnBlur/index.html index ab3ffe8..864c3f3 100644 --- a/reference/pauseOnBlur/index.html +++ b/reference/pauseOnBlur/index.html @@ -86,7 +86,7 @@ Related - @pjs directives + @pjs directives - \ No newline at end of file + From 9bb8db88b42c87f6c5cdc147ae8ac5397a6d7d03 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Wed, 30 Dec 2020 05:56:35 -0300 Subject: [PATCH 38/47] Update index.html --- reference/requestImage_/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/requestImage_/index.html b/reference/requestImage_/index.html index 328c51f..021aafc 100644 --- a/reference/requestImage_/index.html +++ b/reference/requestImage_/index.html @@ -76,7 +76,7 @@ Related - loadImage()
- PImage
+ loadImage()
+ PImage
From c0b9e80bd762a10c78490b8487201cf43f36af50 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Wed, 30 Dec 2020 05:58:19 -0300 Subject: [PATCH 39/47] Update index.html --- reference/loadImage_/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reference/loadImage_/index.html b/reference/loadImage_/index.html index 4d98c04..fa0204e 100644 --- a/reference/loadImage_/index.html +++ b/reference/loadImage_/index.html @@ -20,7 +20,7 @@ Examples -
example pic
+		
example pic
 
     // @pjs preload must be used to preload the image 
 
@@ -32,7 +32,7 @@
 
     image(b, 0, 0);
 
-
example pic
+
example pic
 
 // @pjs preload must be used to preload the image
 
@@ -160,13 +160,13 @@
 
 		Related
 
-		PImage 
+		PImage 
 
-        
image() +
image() -
imageMode() +
imageMode() -
background()
+
background()
From cd8f182266d5c2a5d53da266ddd9c866ebbf3b68 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Wed, 30 Dec 2020 06:01:17 -0300 Subject: [PATCH 40/47] Update index.html --- reference/image_/index.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/reference/image_/index.html b/reference/image_/index.html index 185fbd9..bbb556c 100644 --- a/reference/image_/index.html +++ b/reference/image_/index.html @@ -20,7 +20,7 @@ Examples -
example pic
+		
example pic
 
     // @pjs preload must be used to preload the image
 
@@ -30,7 +30,7 @@
 
     b = loadImage("laDefense.jpg");
 
-    image(b, 0, 0);
example pic
+    image(b, 0, 0);
example pic
 
     // @pjs preload must be used to preload the image
 
@@ -170,17 +170,17 @@
 
 		
 
-    loadImage() 
+ loadImage()
- PImage
+ PImage
- imageMode()
+ imageMode()
- tint()
+ tint()
- background()
+ background()
- alpha()
+ alpha()
From 9b56f3808131b529c171d796849e6c4d377922bc Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Wed, 30 Dec 2020 06:03:16 -0300 Subject: [PATCH 41/47] Update index.html --- reference/PImage/index.html | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/reference/PImage/index.html b/reference/PImage/index.html index a070fc5..969f1a3 100644 --- a/reference/PImage/index.html +++ b/reference/PImage/index.html @@ -11,7 +11,7 @@ Examples -
example pic
PImage b;
+		
example pic
PImage b;
 b = loadImage("laDefense.jpg");
 image(b, 0, 0);
@@ -33,16 +33,16 @@ - + - + - + @@ -54,49 +54,49 @@ @@ -140,8 +140,8 @@ - +
widthwidth Shape document width
heightheight Shape document width
pixels[]pixels[] Shape document width
Methods - + - + - + - + - + - + - + - + - + - +
get()get() Reads the color of any pixel or grabs a rectangle of pixels
set()set() Writes a color to any pixel or writes an image into another
copy()copy() Copies the entire image
mask()mask() Masks part of the image from displaying
blend()blend() Copies a pixel or rectangle of pixels using different blending modes
filter()filter() Converts the image to grayscale or black and white
save()save() Saves the image to a TIFF, TARGA, PNG, or JPEG file
resize()resize() Changes the size of an image to a new width and height
loadPixels()loadPixels() Loads the pixel data for the image into its pixels[] array
updatePixels()updatePixels() Updates the image with the data in its pixels[] array
RelatedloadImage()
- imageMode()
- createImage()
loadImage()
+ imageMode()
+ createImage()
From bd324d51396c2af189011693cecabd75f7dd821d Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Wed, 30 Dec 2020 06:05:57 -0300 Subject: [PATCH 42/47] Update index.html --- reference/createImage_/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/createImage_/index.html b/reference/createImage_/index.html index 408cca1..4c9b176 100644 --- a/reference/createImage_/index.html +++ b/reference/createImage_/index.html @@ -20,7 +20,7 @@ Examples -
example pic
PImage img = createImage(66, 66, RGB);
+		
example pic
PImage img = createImage(66, 66, RGB);
 
 for(int i=0; i < img.pixels.length; i++) {
 
@@ -28,7 +28,7 @@
 
 }
 
-image(img, 17, 17);
example pic
PImage img = createImage(66, 66, RGB);
+image(img, 17, 17);
example pic
PImage img = createImage(66, 66, RGB);
 
 for(int i=0; i < img.pixels.length; i++) {
 
@@ -132,9 +132,9 @@
 
 		Related
 
-		PImage
+ PImage
- PGraphics
+ PGraphics
From 460af2b9a89b4a07ff669752ccdf96f92074a7ef Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Wed, 30 Dec 2020 06:07:13 -0300 Subject: [PATCH 43/47] Update index.html --- reference/imageMode_/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reference/imageMode_/index.html b/reference/imageMode_/index.html index c3fe70b..d9ebfd1 100644 --- a/reference/imageMode_/index.html +++ b/reference/imageMode_/index.html @@ -12,7 +12,7 @@ Examples -
example pic
// @pjs preload must be used to preload the image
+		
example pic
// @pjs preload must be used to preload the image
     /* @pjs preload="laDefense_crop.jpg"; */
     PImage b;
 b = loadImage("laDefense_crop.jpg");
@@ -60,9 +60,9 @@
 	
 
 		Related
-		loadImage()
- PImage
- image()
- background()
+ loadImage()
+ PImage
+ image()
+ background()
From 11f523822beace89be4c71ed8d066dfe41c3a5ee Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Wed, 30 Dec 2020 06:10:06 -0300 Subject: [PATCH 44/47] Update index.html --- reference/background_/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/background_/index.html b/reference/background_/index.html index 1e243ce..22ec0b8 100644 --- a/reference/background_/index.html +++ b/reference/background_/index.html @@ -20,7 +20,7 @@ Examples -
example pic
background(51);
example pic
background(255, 204, 0);
example pic
+		
example pic
background(51);
example pic
background(255, 204, 0);
example pic
 
 // @pjs preload must be used to preload the image
 
@@ -188,11 +188,11 @@
 
 		stroke()
- fill()
+ fill()
- tint()
+ tint()
- colorMode()
+ colorMode()
From 95cd19c71adb271d432e1d418cab7239b878eb22 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Wed, 30 Dec 2020 06:13:04 -0300 Subject: [PATCH 45/47] Update index.html --- reference/createGraphics_/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/createGraphics_/index.html b/reference/createGraphics_/index.html index 25a8563..fb487c6 100644 --- a/reference/createGraphics_/index.html +++ b/reference/createGraphics_/index.html @@ -20,7 +20,7 @@ Examples -
example pic
PGraphics pg;
+		
example pic
PGraphics pg;
 
 
 
@@ -160,7 +160,7 @@
 
 		Related
 
-		PGraphics
+ PGraphics
From 5813f435a2f24473209d62cf102c56f98df54218 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Wed, 30 Dec 2020 06:13:59 -0300 Subject: [PATCH 46/47] Update index.html --- reference/PGraphics/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/PGraphics/index.html b/reference/PGraphics/index.html index a64cbd9..a1970d2 100644 --- a/reference/PGraphics/index.html +++ b/reference/PGraphics/index.html @@ -11,7 +11,7 @@ Examples -
example pic
PGraphics pg;
+		
example pic
PGraphics pg;
 
 void setup() {
   size(100, 100);
@@ -43,13 +43,13 @@
 		
 		
-				
+				
-				
+				
beginDraw()beginDraw() Sets up the rendering context
endDraw()endDraw() Finalizes the renderering context
@@ -90,6 +90,6 @@ Related - createGraphics() + createGraphics() From 5af87350d24e9c5a98ceb34f7e2d21d40d41de70 Mon Sep 17 00:00:00 2001 From: GoToLoop Date: Wed, 30 Dec 2020 06:16:41 -0300 Subject: [PATCH 47/47] Update index.html --- reference/PVector/index.html | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/reference/PVector/index.html b/reference/PVector/index.html index 83e364c..637ba90 100644 --- a/reference/PVector/index.html +++ b/reference/PVector/index.html @@ -46,16 +46,16 @@ - + - + - + @@ -67,65 +67,65 @@
xx x component of the vector
yy y component of the vector
zz z component of the vector
Methods - + - + - + - + - + - + - + - + - + - + - + - + - + - +
get()get() Gets the x, y, z component of the vector
set()set() Sets the x, y, z component of the vector
mag()mag() Calculates the magnitude (length) of the vector and returns the result as a float
add()add() Adds one vector to another
sub()sub() Subtracts one vector from another
mult()mult() Multiplies the vector by a scalar
div()div() Divides the vector by a scalar
dist()dist() Calculate the Euclidean distance between two points
dot()dot() Calculates the dot product
cross()cross() Calculates the cross product
normalize()normalize() Normalizes the vector
limit()limit() Limits the magnitude of the vector
angleBetween()angleBetween() Calculates the angle between two vectors
array()array() Return a representation of the vector as an array