mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Replace Lenna with Marilyn.
This commit is contained in:
parent
33c0ef0e5c
commit
6ec34fbb60
7 changed files with 17 additions and 16 deletions
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@ var fs = require('fs');
|
|||
var canvas = new paper.Canvas(800, 600);
|
||||
paper.setup(canvas);
|
||||
|
||||
var url = 'http://upload.wikimedia.org/wikipedia/en/2/24/Lenna.png';
|
||||
var url = 'http://assets.paperjs.org/images/marilyn.jpg';
|
||||
var raster = new paper.Raster(url);
|
||||
raster.position = paper.view.center;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
// Based on 'JPEG Raster' by Jonathan Puckey:
|
||||
// http://www.flickr.com/photos/puckey/3179779686/in/photostream/
|
||||
|
||||
// Create a raster item using the image with id='lenna'
|
||||
// Create a raster item using the image with id='mona'
|
||||
var raster = new Raster('mona');
|
||||
|
||||
// Make the raster invisible:
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -43,7 +43,7 @@ var Raster = Item.extend(/** @lends Raster# */{
|
|||
* placed
|
||||
*
|
||||
* @example {@paperscript height=300} // Creating a raster using a url
|
||||
* var url = 'http://upload.wikimedia.org/wikipedia/en/2/24/Lenna.png';
|
||||
* var url = 'http://assets.paperjs.org/images/marilyn.jpg';
|
||||
* var raster = new Raster(url);
|
||||
*
|
||||
* // If you create a Raster using a url, you can use the onLoad
|
||||
|
@ -67,7 +67,7 @@ var Raster = Item.extend(/** @lends Raster# */{
|
|||
*
|
||||
* @example {@paperscript height=300}
|
||||
* var raster = new Raster({
|
||||
* source: 'http://upload.wikimedia.org/wikipedia/en/2/24/Lenna.png',
|
||||
* source: 'http://assets.paperjs.org/images/marilyn.jpg',
|
||||
* position: view.center
|
||||
* });
|
||||
*
|
||||
|
|
|
@ -1454,7 +1454,7 @@ var Path = PathItem.extend(/** @lends Path# */{
|
|||
radius = hitStroke
|
||||
? style.getStrokeWidth() / 2
|
||||
// Set radius to 0 when we're hit-testing fills with
|
||||
// tolerance, to handle tolerance through stroke hit-test
|
||||
// tolerance, to handle tolerance through stroke hit-test
|
||||
// functionality. Also use 0 when hit-testing curves.
|
||||
: hitFill && options.tolerance > 0 || hitCurves
|
||||
? 0 : null;
|
||||
|
|
Loading…
Reference in a new issue