Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scrollTop problem in chrome #16

Open
wants to merge 238 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
238 commits
Select commit Hold shift + click to select a range
afcec3e
added curElement.focus() to make sure sketches can be mouse-focussed
Pomax Aug 5, 2012
76d2c2a
enforced focus-on-load
Pomax Aug 5, 2012
6e4bfa4
fixed ArrayList iterator and added unit test for it
dasl- Aug 5, 2012
7ffd0a6
added String.matches functionality, plus unit test
Pomax Aug 7, 2012
d856c1b
forgot a ;
Pomax Aug 7, 2012
a338147
removed default focus-change
Pomax Aug 8, 2012
05c5515
Merge pull request #24 from Pomax/t1883
Pomax Aug 9, 2012
f9476da
Merge pull request #23 from Pomax/t1886
jbuck Aug 9, 2012
308591d
Updated changelog for v1.4.1
jbuck Aug 9, 2012
3b2dc95
Fix documentation regarding exit() and draw() [#1197]
jbuck Aug 9, 2012
7fd1a8e
made use of ++index for array list iterator rather than incrementing …
dasl- Aug 10, 2012
eb88381
made ArrayList constructor take 'anything that has .toArray' instead …
Pomax Aug 11, 2012
8b86292
Updated QuickStart links + a typo fix
acusti Aug 16, 2012
d53136f
Added fix for testing string with null, added test.
asalga Jul 29, 2012
fc5d757
Merge pull request #22 from davidleibovic/master
jbuck Aug 18, 2012
2002006
rebind Processing.instances when processingInstances is cleared
Pomax Sep 2, 2012
92fe4cd
Added PVector.sub() perf was 311ms now is 190ms! Remove sub PVector u…
asalga Sep 9, 2012
f0f4557
Fixed bug 1828 and added unit test
dasl- Sep 12, 2012
3991042
Merge pull request #27 from Pomax/t1889
jbuck Sep 15, 2012
148ca41
Fixing failure on firefox documentXUL when you tried to override docu…
guilhermef Sep 20, 2012
c945972
InstanceOf was failing inside a firefox extension
guilhermef Sep 20, 2012
7e71e38
Merge remote-tracking branch 'upstream/master' into fix-bug-1828
dasl- Nov 22, 2012
9f40129
Merge pull request #31 from asalga/bug1901
jbuck Dec 1, 2012
d79e533
Merge pull request #25 from jbuck/t1197
jbuck Dec 1, 2012
1cacb45
Merge pull request #30 from Pomax/t1881
jbuck Dec 1, 2012
970d953
Bug 1923 - Ignore image type in loadImage
jbuck Dec 1, 2012
09ce6ae
Merge pull request #39 from jbuck/t1923
jbuck Dec 3, 2012
2014607
p.online no longer exists in P5 2.0
Pomax Dec 3, 2012
cf8ac71
nuked.
Pomax Jan 27, 2013
bf79a0f
ignoring new ArrayList(<num>), since Processing does, too. Also updat…
Pomax Jan 27, 2013
da3313a
turns out SVG child parsing added an extra child step between all ele…
Pomax Jan 27, 2013
2f20180
Merge pull request #37 from davidleibovic/fix-bug-1828
Pomax Jan 28, 2013
a3e3ca1
Merge pull request #35 from guilhermef/master
Pomax Jan 28, 2013
e714a5b
fix bug 1821
dasl- Jan 28, 2013
94f397a
fix bug 1935
dasl- Jan 28, 2013
382baa7
Merge pull request #46 from davidleibovic/fix-bug-1821
Pomax Jan 28, 2013
17f395f
Merge pull request #47 from davidleibovic/fix-bug-1935
Pomax Jan 28, 2013
fa3f3fd
Merge pull request #28 from acusti/patch-1
Pomax Jan 28, 2013
2fdf7d5
PVector additions with tests for p5 API parity [#1981]
jli Jan 31, 2013
b849811
comment cleanup
jli Feb 2, 2013
b2013fb
Merge pull request #49 from jli/t1981
Pomax Feb 10, 2013
24de2db
updated failing unit test
Pomax Mar 30, 2013
cfa5374
Merge pull request #42 from Pomax/t1930
Pomax Mar 30, 2013
1de4235
Merge pull request #41 from Pomax/t1917
Pomax Mar 30, 2013
c60d2c7
Merge pull request #40 from Pomax/t1942
Pomax Mar 30, 2013
906c886
emergency lint fix
Pomax Mar 30, 2013
810870a
Merge pull request #56 from Pomax/master
Pomax Mar 30, 2013
67a092c
node compile branch
Pomax Jun 16, 2013
202ebe5
tweak
Pomax Jul 17, 2013
078b2f3
Merge pull request #62 from Pomax/nodecompile
Pomax Aug 16, 2013
9981406
no longer experimental
Pomax Sep 26, 2013
af137fe
remove the last bits of experimental-mentions from readme
Pomax Sep 29, 2013
dd70a94
Added TAU to match the Java version
cale-bradbury Oct 16, 2013
cc0d1a2
Merge pull request #67 from netgrind/patch-1
Pomax Oct 16, 2013
da8f29b
Fixed bug where implicit semicolon insertion was messing up returns.
callumacrae Oct 15, 2013
a0290ef
Merge pull request #65 from callumacrae/ticket/2052
Pomax Oct 16, 2013
abb23f2
pconstants in touchmouse
Pomax Oct 17, 2013
38bf17a
Merge pull request #68 from Pomax/touchmouse
Pomax Oct 17, 2013
e130d29
Fix exception when indexing arguments
ptomato Nov 12, 2013
874a7d3
Merge pull request #74 from ptomato/arguments-fix
Pomax Nov 13, 2013
6af728b
bower module
Pomax Mar 20, 2014
5762ba6
pre1.4.3
Pomax Mar 20, 2014
3ac85b3
1.4.3
Pomax Mar 20, 2014
810be14
1.4.3
Pomax Mar 20, 2014
2b7a105
pre 1.4.4
Pomax Mar 20, 2014
c1da7f3
Merge pull request #85 from Pomax/master
Pomax Mar 20, 2014
7760d2c
1.4.4
Pomax Mar 20, 2014
d9180f1
Specified where to find LICENSE and AUTHORS
eligrey Mar 23, 2014
a15ade5
Merge pull request #86 from eligrey/patch-1
Pomax Mar 23, 2014
5cee9e5
fix 'this' not pointing to the right thing outside of setup
Pomax Mar 23, 2014
c4e345c
Merge branch 'master' of github.com:processing-js/processing-js
Pomax Mar 23, 2014
4cc2c24
pretag
Pomax Mar 23, 2014
5bcf815
1.4.5
Pomax Mar 23, 2014
2ad693b
fix to random generator function
Pomax Mar 23, 2014
c670285
1.4.6
Pomax Mar 23, 2014
964e685
- adding print and println
darbicus Oct 24, 2013
ae8ad44
Merge pull request #87 from processing-js/println
Pomax Mar 23, 2014
de71d22
1.4.7
Pomax Mar 23, 2014
1d56bd9
better readme
Pomax Mar 23, 2014
7c84583
1.4.7 proper
Pomax Mar 25, 2014
6cc674d
Fixed issues with rotate() in 3D
tdhsmith Apr 11, 2014
ab9aea2
Merge pull request #91 from tdhsmith/master
Pomax Apr 17, 2014
4e2a5e2
Fix for bug 2045. The missing randomGaussian is the myster extra rand…
Oct 5, 2013
61026ac
Merge pull request #94 from processing-js/fix2045
Pomax Apr 17, 2014
1132da1
pre-1.4.8 commit
Pomax Apr 17, 2014
2c88a18
where to find Processing
Pomax May 9, 2014
2dadb4d
fix lowercase path in test.js. project now builds in Linux
cesarpachon Jun 18, 2014
455f323
fixing bug in blur filter that shift the image to the up-right corner
cesarpachon Jun 18, 2014
863b36d
Merge pull request #104 from cesarpachon/master
Pomax Jun 18, 2014
3078dff
bad comment removal
Pomax Aug 12, 2014
351730b
don't round when renderSmooth is true (for lines, points, and rectang…
kevinbarabash Oct 15, 2014
c084716
Merge pull request #116 from kevinb7/smooth_without_rounding
Pomax Oct 17, 2014
d9c5374
Fix bug in reload/re-init behaviour
Dec 14, 2014
6fb2910
Merge pull request #126 from wardsky/reload-fix
Pomax Dec 20, 2014
746c7f3
Removed "The-Nature-of-Code" submodule.
andyli Jan 1, 2015
b1c45a0
Merge pull request #129 from andyli/remove-nature-of-code
Pomax Jan 1, 2015
9df33c5
lerpColor: round float to int instead of truncate.
andyli Jan 1, 2015
40ca28a
Merge pull request #128 from andyli/lerpColor-rounding
Pomax Jan 2, 2015
faf641e
fixed noise function, with unit tests to back it up
Pomax Jan 4, 2015
9a620ee
1.4.9
Pomax Jan 4, 2015
aa489aa
note on randomness in Perlin noise
Pomax Jan 4, 2015
8dc803c
Update README.md
Pomax Jan 5, 2015
251b6a5
fix for toString with null text/cdata content
Pomax Mar 18, 2015
5eea02a
added parseXML
Pomax Mar 18, 2015
598eb3e
compacting to catch both null and undefined
Pomax Mar 18, 2015
82952fd
spacing
Pomax Mar 18, 2015
4612d45
randomGaussian fix
Pomax Mar 20, 2015
29a256e
XML.parse should not yield an XML element...
Pomax Mar 20, 2015
fc0c5a0
fix for source caching when localStorage is off limits
Pomax Mar 20, 2015
3a44394
.
Pomax Mar 20, 2015
2feb537
Merge pull request #158 from processing-js/loadXML
Pomax Mar 20, 2015
f3c2f03
Merge pull request #156 from processing-js/parsexml
Pomax Mar 20, 2015
e6f63c8
Merge pull request #154 from processing-js/xmltostring
Pomax Mar 20, 2015
614511b
JSlint fix
Pomax Mar 20, 2015
10f5760
1.4.10
Pomax Mar 20, 2015
8ba9437
bower bump
Pomax Mar 20, 2015
c5c7d94
unit test for XML constructor to yield a node with the pass string name
Pomax Mar 20, 2015
7bb5d81
print/println fixes
Pomax Mar 20, 2015
b417dd6
v
Pomax Mar 20, 2015
73b1bb4
v
Pomax Mar 20, 2015
05ef301
1.4.11
Pomax Mar 20, 2015
cdd2d99
bower v
Pomax Mar 20, 2015
eef1454
remove the throw isolation when loading a sketch
Pomax Mar 20, 2015
a28c458
1.4.12
Pomax Mar 20, 2015
4ceda14
bower v
Pomax Mar 20, 2015
a698015
package.json update
Pomax Mar 20, 2015
1f2f193
fixed up the CSS for the console, with classnames for applying/overri…
Pomax Mar 20, 2015
da3e18a
css fixes
Pomax Mar 21, 2015
b7a2c53
Merge pull request #161 from processing-js/consolecss
Pomax Mar 21, 2015
093b9f5
1.4.13
Pomax Mar 21, 2015
3c88844
bower
Pomax Mar 21, 2015
b25bab3
Update README.md
Pomax Mar 21, 2015
811dafe
removed rogue line, fixed typo in unit test name
Pomax Mar 21, 2015
c22e849
Merge branch 'master' of github.com:processing-js/processing-js
Pomax Mar 21, 2015
01467b5
fix to the unit test XML parser, to deal with self-closed elements
Pomax Mar 21, 2015
66d551e
Fixes #168
viamodulo Mar 26, 2015
fa78529
Update README.md
togakangaroo Mar 27, 2015
58f360f
Merge pull request #169 from viamodulo/issue168
Pomax Mar 27, 2015
f6ea530
Merge pull request #170 from togakangaroo/master
Pomax Mar 27, 2015
4472bcc
Closes #168 : Added unit tests for PVector.angleBetween
viamodulo Mar 27, 2015
b7a82dc
Merge pull request #171 from viamodulo/issue168
Pomax Mar 29, 2015
c90862f
arc fix for precision
Pomax May 26, 2015
90be73d
Merge pull request #186 from processing-js/arcfix
Pomax May 26, 2015
ef826b9
v1.4.14 builds
Pomax May 26, 2015
7bca3c1
1.4.14
Pomax May 26, 2015
105ec5f
further arc refining: better step size
Pomax May 27, 2015
36892ec
1.4.15
Pomax May 27, 2015
f72e3c3
bower bump
Pomax May 27, 2015
b6cb09d
adding and subtracting for 2D vectors
jjwon0 Aug 13, 2015
9ffb4ae
Merge pull request #197 from jjwon/master
Pomax Aug 14, 2015
9034d6f
prev1.4.16
Pomax Aug 14, 2015
36cb340
1.4.16
Pomax Aug 14, 2015
d7bc20f
contribute
Pomax Aug 15, 2015
2eadd5f
contribute
Pomax Aug 15, 2015
ae6e8b4
contribute.md
Pomax Aug 15, 2015
caf4f71
Delete CONTRIBUTING.md
Pomax Aug 15, 2015
06b5008
Update README.md
Pomax Aug 15, 2015
584a51e
Update README.md
Pomax Aug 15, 2015
43680eb
Rename Contribute.md to CONTRIBUTING
Pomax Aug 15, 2015
1ed660e
Rename CONTRIBUTING to CONTRIBUTING.md
Pomax Aug 15, 2015
5f4d018
Update README.md
Pomax Aug 15, 2015
968d761
Issue #203 : Added loadSketchFromSources callback.
DylanVann Sep 18, 2015
574649d
Rename complete to onComplete.
DylanVann Sep 19, 2015
50ccecf
Merge pull request #204 from DylanVann/master
Pomax Sep 24, 2015
991773d
Made scale() stop treating 0 as undefined
benburrill Feb 1, 2016
1be84e6
Merge pull request #226 from Potato42/master
Pomax Feb 2, 2016
19d5168
Convert DOS line endings to UNIX for consistency
j1mr10rd4n Feb 18, 2016
c2b1466
Merge pull request #230 from j1mr10rd4n/consistent-line-endings-in-tests
Pomax Feb 19, 2016
073f7b6
Update test.html
MaxxiBoi Apr 8, 2016
c1f3693
Merge pull request #236 from AwesomeWebMaster10/patch-3
Pomax Apr 9, 2016
b61ea15
Update README.md
Pomax May 9, 2016
11fbef8
Create ISSUE_TEMPLATE.md
Pomax May 30, 2016
36be5a9
Update Math.js to fix Issue #244
lgto4 Jun 12, 2016
6c71285
Added constants OPEN, CHORD and PIE to be used later with arc() mode
atgeflu Jun 25, 2016
602c323
Added modes OPEN, CHORD and PIE to arc()
atgeflu Jun 25, 2016
521214e
Added tests for arc() OPEN, CHORD and PIE modes
atgeflu Jun 25, 2016
8807e10
Added location of new ref tests for arc modes OPEN, CHORD and PIE to …
atgeflu Jun 30, 2016
32574d5
Changed onComplete back to complete etc. which were introduced automa…
atgeflu Jul 1, 2016
5bf16e8
Merge pull request #246 from atgeflu/arcModes
Pomax Jul 8, 2016
be2f37d
minify fix
Pomax Jul 8, 2016
c23dffd
1.4.17
Pomax Jul 8, 2016
f6094f7
1.4.18
Pomax Jul 8, 2016
a40c0f2
Tests update to Math.js to fix Issue #244
lgto4 Jul 8, 2016
d9136fe
Update Math.js to fix Issue #244
lgto4 Jul 8, 2016
3e161c2
Update Math.js to fix Issue #244
lgto4 Jul 8, 2016
748a2b2
Tests update to Math.js to fix Issue #244
lgto4 Jul 8, 2016
34bd57b
updated comment
atgeflu Jul 8, 2016
1a1fd3b
have same style for if/else throughout the code
atgeflu Jul 8, 2016
fe22393
moved appendChild check from println to print, so that the console wi…
atgeflu Jul 8, 2016
1f59d56
newly generated processing.js
atgeflu Jul 8, 2016
6ca4b66
undo of formatting changes
atgeflu Jul 9, 2016
4212e8b
regenerated processing.js
atgeflu Jul 9, 2016
b45a747
Merge pull request #252 from atgeflu/console
Pomax Jul 9, 2016
01e6f06
1.5.0
Pomax Jul 9, 2016
52f7445
.
Pomax Jul 9, 2016
b08db64
1.5.1
Pomax Jul 9, 2016
12d3175
recompiled
Pomax Jul 9, 2016
9d3db22
1.5.2
Pomax Jul 9, 2016
c56342e
Merge pull request #245 from lgto4/patch-1
Pomax Jul 9, 2016
0f7f6be
1.5.3
Pomax Jul 9, 2016
dde7e36
1.6.0
Pomax Jul 9, 2016
73fb78f
1.6.0
Pomax Jul 9, 2016
990edcf
prevent page-level scroll handling if mouseScrolled() is defined
Pomax Jul 16, 2016
748d9e8
httpserver dependency
Pomax Jul 16, 2016
171dfae
missing newline
Pomax Jul 16, 2016
39b04c0
Update to test for Issue 256
lgto4 Jul 21, 2016
d97b70b
Merge pull request #258 from lgto4/patch-3
Pomax Aug 1, 2016
0f0c8eb
Merge pull request #253 from processing-js/scrollfix
Pomax Sep 28, 2016
e8a9006
rebuild for 1.6.1
Pomax Sep 28, 2016
b9b6681
1.6.1
Pomax Sep 28, 2016
23612b2
improved width/height check in 2d context rect()
Pomax Oct 1, 2016
3a8d8a8
1.6.2
Pomax Oct 1, 2016
0e3809f
Merge pull request #268 from processing-js/2dcontextrect
Pomax Oct 1, 2016
7038a53
vreset
Pomax Oct 1, 2016
a369605
1.6.2
Pomax Oct 1, 2016
bfcbc2e
Improve random() (#269)
CapacitorSet Oct 12, 2016
b7380e0
recompile
Pomax Oct 12, 2016
7ccf6b8
1.6.3
Pomax Oct 12, 2016
0563fba
removed accidental console.log
Pomax Jan 20, 2017
983b698
1.6.4
Pomax Jan 20, 2017
92680ca
Fixes Issues #222 and #99 (#277)
frogg Mar 3, 2017
5e54188
rebuild
Pomax Mar 3, 2017
c22a43d
1.6.5
Pomax Mar 3, 2017
d2c78c5
Fix for issue #271 with test
ojcm Mar 4, 2017
8fa49d3
Move changes from processing to Processing
ojcm Mar 4, 2017
8ca3dbb
Correct incorrect variable b to h
ojcm Mar 4, 2017
53ef087
Fix issue #271 - hue value -1 causes crash (#278)
ojcm Mar 5, 2017
52e83f7
Merge branch 'master' of github.com:processing-js/processing-js
Pomax Mar 5, 2017
fa1fd85
rebuild
Pomax Mar 5, 2017
caa7c9e
1.6.6
Pomax Mar 5, 2017
502afea
Update README.md
Pomax Mar 5, 2017
f66469a
Update README.md
Pomax May 10, 2017
13467bd
Update README.md
Pomax May 10, 2017
8b8456b
Add LICENSE to root in order to properly uncopyright the code (#286)
superusercode Sep 25, 2017
4cc86a9
MAXOSX -> MACOSX (#288)
GoToLoop Oct 25, 2017
d303a99
Update README.md (#300)
Pomax Dec 1, 2018
099944a
Update README.md
Pomax Dec 1, 2018
1c1d58d
Update README.md
Pomax Dec 4, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 1 addition & 8 deletions .gitignore 100644 → 100755
@@ -1,9 +1,2 @@
release/
dist/
logs/

Unsaved\ Document*
node_modules
.DS_Store
*.swp
*~
*.pyc
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

102 changes: 102 additions & 0 deletions CONTRIBUTING.md
@@ -0,0 +1,102 @@
# How to contribute to Processing.js

If you want to contribute to Processing.js in any form, that's great! This document explains the fundamental philosophy behind Processing.js, what kind of contributions are welcome, and how to interact with each other on the issue tracker and on IRC

## The fundamental rule for Processing.js

The fundamental rule for Processing.js is: **Processing.js should allow Processing code to run on the web**.

Any contributions to Processing.js are evaluated in terms of getting the library as close to "parity" with Processing as possible.

Parity means that if it works in Processing, it should work in Processing.js too, *provided the limitations of JavaScript, compared to java, allow for that*.

However, very importantly "parity" does **not** mean that Processing.js's code needs to do exactly the same thing for code that does *not* work in Processing, so code that causes errors to be thrown in Processing might actually "do something" in Processing.js, just not the right thing at all.

Processing.js is not a "general purpose graphics library" like other JavaScript libraries, it is specifically meant to make Processing source code run on the web, and so if you run across bugs because you're using Processing.js as a pure JS library, then please first make sure that the code you wrote works in regular Processing. If it doesn't, then you'll first have to rewrite your code to work there, before concluding there is a bug in Processing.js

## How can I contribute?

There are a few categories of contribution that help improve Processing.js:

### Writing code fixes

This is the big one: if parts of Processing.js do the wrong thing, compared to Processing, or there are functions missing from Processing.js that are in the Processing API, or they exist but they don't support all the different ways that function can behave, then fixing that is the primary way to contribute to Processing.js

Fork the repository to your account, clone your copy, fix up the code you want to fix up (in a branch dedicated to that one thing you're fixing), and then if you also want to contribute that fix back to Processing.js:

- find the issue that is associated with the problem you solved
- if there is no issue, file one!
- write, or extend, one or more test cases for the code that you fixed. The test should fail without your fixes, but pass with your fixes.
- file a pull request for your branch with the fix against the "processing-js" account (not jeresig, which github will probably pick for you)

After that, people can comment on your pull request to improve it so that it will neatly fit in with the rest of the code base.

### Writing or improving tests

Even if you don't know how to write JavaScript all that well, if you run into some code that you know works in Processing, but does not work in Processing.js, having a test with that code is super useful!

- reduce your code to ideally fewer than 10 lines of code that still reproduces the bad behaviour you see
- find a test for the part of the code in Processing.js that breaks for your
- add your code to that test and submit a pull request for it!

### Writing or improving documentation

Keeping documentation up to date is one of the hardest problems in open source software. If you want to help improve the documentation: hurray!

- code documentation is in the form of comments in the source code
- reference and website documentation can be found over on the processing-js.github.io repository, and PRs are always welcome!

### Finding bugs and writing issues for others

Even if you don't want to write code at all, you can write a bug with some code that works in Processing but does not work in Processing.js, with a description of what it should do, what Processing does, and what you see Processing.js do instead. You probably found something that no one else has found yet, so reporting it will help people track down the problem even if they've never run across it themselves.

### Help debug problems to uncover

If you do like coding, but you don't want to write patches and go through the process of getting those landed, you can still help out by investigating what might be wrong, and simply reporting your findings in the issue associated with the problem. Things like "This seems to be caused by the caching mechanism used in the Parser.js module, in the StringAST parse function" are valuable information for others to know: it helps save a ton of time just knowing where to start looking.

## How do I interact with others?

Open source is a collaborative efforts, so try to interact with others in an open and friendly way. Pointing out things are wrong is fine, but be polite about it: there is a normal, real human being on the other side of the table, and they have feelings, too. Don't just say what is wrong, but explain why you think so, so that people can learn from that and can have a discussion to get to the root of what is wrong.

### Remember: you are not your code

It is hard to not feel attacked personally when someone points out a problem with the code you wrote, but remember that you are not your code. We all make mistakes, have typos, forget about a particular pattern that "would have been much better to use" etc. etc. so when someone points out mistakes in your code, as long as they're polite about it they're helping you get better, not telling you that you are bad at writing code.

### Have a normal conversation

It is tempting to just list comments and critique, such as a bullet list of things that wrong, or points you agree/disagree with, but you're not talking to machines, so please don't do this. Use normal language to describe what you're thinking of and what you'd recommend be done in normal paragraphs of text. If you have multiple points to make, just write multiple paragraphs. They can be short, but unless someone asked a question and you're supplying the answer and that answer is short, don't just list factoids.

### If someone tells you they feel uncomfortable with things you do, listen

It's easy to think that the way you communicate is fine, and that when someone says they are uncomfortable with it, then that's their problem. That is, however, not acceptable in this project. Respect other contributors, and behave in a way that does not make them feel uncomfortable. If someone points out that the way you communicate is curt and even rude, ask them what they mean and how they think you could improve your communication. Don't tell them off for being too sensitive, and also don't just go "ok" and then try to figure out how to fix it on your own: ask people to help you improve when they point out there is room for improvement. This is true for code, but it's just as true for behaviour.

### And if someone makes you feel uncomfortable, tell them

The reserve of the previous point is also true: if someone is behaving in a way that makes you uncomfortable, tell them that. And then also tell them why that is and what you think they can do to overcome that. Don't wait for them to acknowledge you before telling them how you would like to be treated instead. Working in a group is not just about getting good code, tests, and documentation written, but also about making sure that everyone in the group can work together without animosity or resentment. You can always walk out on a project whenever you want, so it's worth first trying to address problems before giving up on someone. You might be surprised how much they listen.

### Don't "derail" conversations with side issues

Each issue is for, not surprisingly, one issue. If while discussing an issue you find a new bug, file a new issue for it so that you can have two conversations, each about its own dedicated topic.

If you are discussion an issue and you find yourself talking about things that are only tangentially related to that issue, again: please file a new issue instead, or if the tangent isn't all that important, simply stop talking about it can get the issue back on track.

While having discussions is natural, open source development is not about having discussions, it's about having discussions that lead to actions that can be taken to improve the open source project. If you want to have a discussion that you think needs to be had: **file an issue for it**. Filing an issue like "discuss what parity means" or "should Processing.js be more informative if it's given broken code" is a perfectly legitimate course of action, and then a meaningful, on-topc discussion can be had there.

#### "derailing" comments may be deleted, and fully derailed issues may get closed

In order to keep things focussed on developing Processing.js, comments that are intended to derail an issue, or derailed discussions that keep going in issues, may end up getting deleted, or have the issue closed and a new one made with all the information that was relevant to the issue copied over, but nothing else.

### "No one complains in any of the other projects I contribute to about this"

Code of conduct may vary from place to place, so if you want to contribute to Processing.js, this is the code of conduct we all promise to abide by. If you can't (and sometimes, you really can't), then there are tons of other projects that you can contribute to.

## If you use IRC: IRC is asynchronous - if you won't be able to stick around, file issues instead

If you're using the IRC channel (#processingjs on irc.mozilla.org) and you want to discuss any of the contribution steps, be aware that IRC is asynchronous: people are in different timezones and many use "bouncers" which allow their IRC connection to stay open even when they are not behind the computer right now. If you want to ask a question, ask your question and then wait for someone to look in to answer it. Don't ask "is anyone here" or say "I have a question" and then wait for people to respond: people will look into the channel and have no idea when you asked that, so unless there is a real question or comment they can meaningfully respond to, they will just look away again and you will probably never get a response when the channel is quiet.

Also, reporting bugs in IRC is useful, but always also file an issue, so that when people leave IRC, that information can still be found somewhere.


## What happens with my contributions? Will I get credit?

As an open source project, everything you send to be merged into Processing.js becomes part of Processing.js, without any ownership attached to it. Code and documentation, insofar as it is unique to Processing.js, simply becomes part of "Processing.js", without authorship, and covered by an MIT license.
26 changes: 26 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,26 @@
module.exports = function( grunt ) {
"use strict";
grunt.initConfig({
pkg: grunt.file.readJSON( "package.json" ),
jshint: {
options: {
browser: true,
globals: {
window: true,
document: true
},
"-W054": true, // new Function() warning
"-W079": true // var redefinition warning
},
files: [
"./*.js",
"./lib/**/*.js",
"./src/**/*.js",
"!./processing.js",
"!./processing.min.js"
]
}
});
grunt.loadNpmTasks( "grunt-contrib-jshint" );
grunt.registerTask( "default", [ "jshint" ]);
};
7 changes: 7 additions & 0 deletions ISSUE_TEMPLATE.md
@@ -0,0 +1,7 @@
Thank you for finding a bug in Processing.js, or having a feature request you'd like to see added.

Processing.js is not under active maintenance at the moment, lacking developers that have the time
to work on it. As such, any bug you find might take a long time to get a fix. However, if you're
interested in fixing things yourself, I (Pomax) will be more than happy to review your suggested
code changes and merge them in if they fix the problem you were having without introducing problems
due to side effects your code might have.
12 changes: 0 additions & 12 deletions LICENSE-HEADER

This file was deleted.