Illustration for paperjs/paper.js#823
The same problem occurs without the use of Paper.js
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- | |
Copyright (c) 2014-2017, Jan Bösenberg & Jürg Lehni | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- | |
Copyright (c) 2014-2017, Jan Bösenberg & Jürg Lehni | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
'use strict'; | |
/*function show(a,b) { | |
var i,nums; | |
nums = []; | |
for(i=0; i<a.length; i++) { | |
nums.push('('+a[i]+'+'+b[i]+'i)'); | |
} | |
return '['+nums.join(', ')+']'; | |
} |
Illustration for paperjs/paper.js#823
The same problem occurs without the use of Paper.js
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Tadpoles</title> | |
<script type="text/javascript" src="http://paperjs.org/static/js/paper.js"></script> | |
<script type="text/javascript" canvas="canvas"> | |
paper.install(window); | |
window.onload = function() { | |
paper.setup('canvas'); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Rounded Rectangles</title> | |
<script type="text/javascript" src="http://paperjs.org/static/js/paper.js"></script> | |
<script type="text/paperscript" canvas="canvas"> | |
var mousePoint = view.center; | |
var amount = 25; | |
var colors = ['red', 'white', 'blue', 'white']; |
// requestAnimFrame shim layer by Paul Irish | |
// Support for element visibility and window blur detection by Juerg Lehni | |
(function() { | |
// Chrome shipped without the time arg in m10 | |
var webkitRequest = window.webkitRequestAnimationFrame; | |
if (webkitRequest) { | |
webkitRequest(function(time) { | |
if (time == undefined) | |
webkitRequest = null; |