mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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);
|
var canvas = new paper.Canvas(800, 600);
|
||||||
paper.setup(canvas);
|
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);
|
var raster = new paper.Raster(url);
|
||||||
raster.position = paper.view.center;
|
raster.position = paper.view.center;
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
// Based on 'JPEG Raster' by Jonathan Puckey:
|
// Based on 'JPEG Raster' by Jonathan Puckey:
|
||||||
// http://www.flickr.com/photos/puckey/3179779686/in/photostream/
|
// 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');
|
var raster = new Raster('mona');
|
||||||
|
|
||||||
// Make the raster invisible:
|
// 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
|
* placed
|
||||||
*
|
*
|
||||||
* @example {@paperscript height=300} // Creating a raster using a url
|
* @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);
|
* var raster = new Raster(url);
|
||||||
*
|
*
|
||||||
* // If you create a Raster using a url, you can use the onLoad
|
* // 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}
|
* @example {@paperscript height=300}
|
||||||
* var raster = new Raster({
|
* 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
|
* position: view.center
|
||||||
* });
|
* });
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue