-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f490497
commit 3047775
Showing
3 changed files
with
42 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<!-- saved from url=(0066)file:///Users/akramhelil/Development/code/patatapClone/cicles.html --> | ||
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> | ||
<title>Circles</title> | ||
<script src="file:///Users/akramhelil/Development/code/patatapClone/paper-full.js"></script> | ||
<link rel="stylesheet" href="file:///Users/akramhelil/Development/code/patatapClone/circle.css"> | ||
<script type="text/paperscript" canvas="myCanvas" data-paper-ignore="true"> | ||
function onKeyDown(event) { | ||
var maxPoint = new Point(view.size.width, view.size.height) | ||
var randomPoint = Point.random(); | ||
var point = randomPoint * maxPoint; | ||
new Path.Circle(point, 10).fillColor = 'yellow'; | ||
} | ||
|
||
var animateCircle = new Path.Circle(new Point(300, 300), 200) | ||
animateCircle.fillColor = 'red' | ||
function onFrame(event) { | ||
animateCircle.fillColor.hue += 1 | ||
animateCircle.scale(.9) | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<canvas id="myCanvas" resize="" width="2560" height="1278" data-paper-scope="1" style="-webkit-user-drag: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></canvas> | ||
|
||
</body></html> |
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,7 +1,7 @@ | ||
canvas { | ||
width: 100%; | ||
height: 100%; | ||
background: green; | ||
background: black; | ||
} | ||
|
||
html, body { | ||
|