Amélioration de la découverte de javascript en ISN
This commit is contained in:
8
ISN/P5js/exemple/index.html
Normal file
8
ISN/P5js/exemple/index.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<script src="p5.min.js"></script>
|
||||
<script src="sketch.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
13
ISN/P5js/exemple/p5.min.js
vendored
Normal file
13
ISN/P5js/exemple/p5.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
14
ISN/P5js/exemple/sketch.js
Normal file
14
ISN/P5js/exemple/sketch.js
Normal file
@@ -0,0 +1,14 @@
|
||||
function setup() {
|
||||
createCanvas(640, 480);
|
||||
var white = 0;
|
||||
var blakck = 255;
|
||||
}
|
||||
|
||||
function draw() {
|
||||
if (mouseIsPressed) {
|
||||
fill(white);
|
||||
} else {
|
||||
fill(black);
|
||||
}
|
||||
ellipse(mouseX, mouseY, 80, 80);
|
||||
}
|
Reference in New Issue
Block a user