-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from zenozeng/v1.3
v1.3
- Loading branch information
Showing
21 changed files
with
430 additions
and
441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,6 @@ | |
"linebreak-style": [ | ||
2, | ||
"unix" | ||
], | ||
"semi": [ | ||
2, | ||
"always" | ||
] | ||
}, | ||
"env": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ module.exports = function(config) { | |
{pattern: 'src/**/*.js', included: false}, | ||
{pattern: 'test/unit/**/*', included: false}, | ||
'https://unpkg.com/[email protected]/lib/p5.min.js', | ||
'https://unpkg.com/[email protected]/dist/jquery.js', | ||
'dist/p5.svg.js', | ||
'dist/test.js' | ||
], | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
rm -rf node_modules/svgcanvas | ||
rm -rf node_modules/svgcanvas || echo "ok" | ||
ln -sf $(pwd)/../svgcanvas $(pwd)/node_modules/svgcanvas |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const DEBUG = false; | ||
|
||
export {DEBUG}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default function(p5) { | ||
p5.prototype.loadPixels = function(...args) { | ||
p5._validateParameters('loadPixels', args); | ||
return this._renderer.loadPixels(); | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,6 @@ <h2>SVG & Canvas</h2> | |
mocha.setup('bdd'); | ||
mocha.setup({timeout: 10000, slow: 2000}); | ||
</script> | ||
<script src="https://unpkg.com/[email protected]/dist/jquery.js"></script> | ||
<script src="../dist/test.js"></script> | ||
</body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const config = { | ||
pixelDensity: 3 // for 200% and 150% | ||
} | ||
|
||
// count non transparent pixels | ||
var countPixels = function(imgData) { | ||
var count = 0; | ||
for (var i = 3; i < imgData.data.length; i += 4) { | ||
if (imgData.data[i] > 0) { | ||
count++; | ||
} | ||
} | ||
return count; | ||
}; | ||
|
||
|
||
export {config, countPixels}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import {assert} from 'chai'; | ||
import testRender from './test-render'; | ||
import testRendering from './test-rendering'; | ||
import testRender, {rendererTester} from './renderer'; | ||
|
||
const p5 = window.p5; | ||
|
||
export {assert, p5, testRender, testRendering}; | ||
export {assert, p5, testRender, rendererTester}; |
Oops, something went wrong.