Présentation effectuée au Festival de la création numérique par Christophe Villeneuve (Hello / Sector One) à la Very Important Party (VIP) 2016 organisé par Popsy Team
sur le framework d'animation CODEF
10. Le 10 juin 2016Very Important Party (VIP)
We Are Back
url : http://wab.com
11. Le 10 juin 2016Very Important Party (VIP)
Animation Simple
Script : tutorials05_core.html
12. Le 10 juin 2016Very Important Party (VIP)
Code source
function go(){
mycanvas.fill('#000000');
myimage.draw(mycanvas,myimageX,200);
myimageX+=myimageMove;
if(myimageX>640-myimage.img.width)
myimageMove=-1;
if(myimageX<0)
myimageMove=1;
requestAnimFrame( go );
}
13. Le 10 juin 2016Very Important Party (VIP)
3d
Script : tutorials67_3d.html
15. Le 10 juin 2016Very Important Party (VIP)
Code (2/2)
function go(){
mycanvas.fill('#000000');
my3d.group.rotation.x+=0.01;
my3d.group.rotation.y+=0.03;
my3d.group.rotation.z+=0.06;
my3d.draw();
requestAnimFrame( go );
}
16. Le 10 juin 2016Very Important Party (VIP)
FAST COMPO
17. Le 10 juin 2016Very Important Party (VIP)
Insertion en HTML
<!DOCTYPE HTML>
<html>
<head>
</head>
<body onLoad="init();">
<center>
<div id="main"></div>
</center>
</body>
</html>
Emplacement de votre code JS <script></script>
18. Le 10 juin 2016Very Important Party (VIP)
Code
19. Le 10 juin 2016Very Important Party (VIP)
Coder (1/3)
● Format compatible
– HTML
– JS
– CSS
20. Le 10 juin 2016Very Important Party (VIP)
Coder (2/3)
<script>
var myfont = new image('media/font2.png');
var mycanvas;
var myscrolltext;
var myscrollparam=[
{myvalue: 0, amp: 125, inc:0.2, offset: -0.04},];
function init(){
mycanvas=new canvas(640,480,"main");
myfont.initTile(32,32,32);
myscrolltext = new scrolltext_horizontal();
myscrolltext.scrtxt="VERY IMPORTANT PARTY 2016 ";
myscrolltext.init(mycanvas,myfont,1,myscrollparam);
go();
}
21. Le 10 juin 2016Very Important Party (VIP)
Coder (3/3)
function go(){
mycanvas.fill('#000000');
myscrolltext.draw(240-16);
requestAnimFrame( go );
}
</script>
22. Le 10 juin 2016Very Important Party (VIP)
Résultat
Script : tutorials31_scrolltext.html
23. Le 10 juin 2016Very Important Party (VIP)
Graphisme
24. Le 10 juin 2016Very Important Party (VIP)
Afficher un Graph (1/2)
● Format compatible
– JPEG
– PNG
– GIF
25. Le 10 juin 2016Very Important Party (VIP)
Afficher un Graph (2/2)
<script src="codef/codef_core.js"></script>
<script>
var myimage=new image('vip2016.png');
var mycanvas;
function init() {
mycanvas=new canvas(640,480,"main");
myimage.setmidhandle();
go();
}
function go() {
mycanvas.fill('#000000');
myimage.draw(mycanvas,150,250);
requestAnimFrame( go );
}
</script>
26. Le 10 juin 2016Very Important Party (VIP)
Résultat
Script : tutorials20_fx.html
27. Le 10 juin 2016Very Important Party (VIP)
Musique
28. Le 10 juin 2016Very Important Party (VIP)
Jouer une musique (1/2)
● Format compatible
– YM
– MOD
– XM
29. Le 10 juin 2016Very Important Party (VIP)
Jouer une musique
<script src="
http://codef.santo.fr/codef/codef_music.js">
</script>
<script>
var player = new music("MK");
//player.stereo(true);
player.LoadAndRun('../media/hmd3.mod');
</script>
30. Le 10 juin 2016Very Important Party (VIP)
Résultat
Script : tutorials81_music.html
31. Qui ???
Christophe
Villeneuve
mozilla reps - firefox os - afup – lemug.fr – mysql – mariadb – drupal – demoscene – firefoxos – drupagora – phptour – forumphp – solutionlinux – Libre@toi – eyrolles – editions eni – programmez – linux pratique – webriver – phptv – ausy - elephpant
32. Le 10 juin 2016Very Important Party (VIP)
Liens
● Site Officiel
– http://codef.santo.fr/
● Code source
– https://github.com/N0NameN0/CODEF
● Production
– http://wab.com/