Amélioration de la découverte de javascript en ISN
This commit is contained in:
8
ISN/P5js/template/index.html
Normal file
8
ISN/P5js/template/index.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<script src="p5.js"></script>
|
||||
<script src="sketch.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
13
ISN/P5js/template/p5.js
Normal file
13
ISN/P5js/template/p5.js
Normal file
File diff suppressed because one or more lines are too long
9
ISN/P5js/template/sketch.js
Normal file
9
ISN/P5js/template/sketch.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function setup ( ) {
|
||||
// Entre les deux accolades ({}), on initialise notre animation
|
||||
createCanvas (480 , 600)
|
||||
}
|
||||
function draw ( ) {
|
||||
// Entre les deux accolades ({}), on explique ce que javascript doit repeter indefiniement .
|
||||
// Par exemple colorier le fond de notre image en noir
|
||||
background ( 0 , 0 , 0 )
|
||||
}
|
Reference in New Issue
Block a user