Tu lis?

Frederic Peters/Lupus

Frederic Peters - Lupus
Lupus LABLENNORRE et Tony UFFIZI se prennent une année sabbatique. Amis d'enfance... [...]

moremoremoremusic

Adam Green/Sixes and Sevens

Adam Green - Sixes and Sevens
Doué comme pas un pour composer des titres primesautiers, délicieusement pop et bizarroïdes,
Adam GreenAdam Green/Sixes and SevensSixes and Sevens Adam Green.com

[1762156415/Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)/216.73.216.185/54558/80]
Twitter Facebook Instagram
♠:96977/  
 
"Designer de photographie horrible", depuis 1996  © 
My Bloody Valentine - Loveless  | Bérurier Noir - Abracadaboum, 87  | Sonic Youth - Goo  | Stupeflip - Stup Religion, 05  | Joanna Newsom - Divers (Album)  | Pink Floyd - The Dark Side Of The Moon 432hz  | Ol' Dirty Bastard - Return To The 36 Chambers  | Lou Reed 12-26-72 Complete Show  | Wu-Tang Clan - Iron Flag  | The Rakes - Capture / Release  | U Roy - Serious Matter (Full Album)  | Earl Sweatshirt - Doris  | Aphex Twin - Come To Daddy  | Iggy Pop - Beat'Em Up, 01  | Stephen Jones - 85/01  | Red Fang - Murder The Mountains  | Ghostemane - N/O/I/S/E  | Alec Empire - Intelligence & Sacrifice  | Psycho Realm - Terror Tape Vol.2  | Duff McKagan - Believe in Me, 93  | Zillakami x Sosmula - City Morgue | AC/DC - Live  | Afro Jazz & Ol' Dirty - Strictly Hip-Hop...  | Dr Dre - The Chronic OG PRESS  | Jeru The Damaja - Wrath of the math, 96  | Gymnopedie no. 1, 2 & 3, Erik Satie (1866-1925)  | Catherine - Hot Saki & Bedtime Stories  | Pink Floyd - Ummagumma - Full Album  | Syd Barrett - 69-71 Vinyl Sessions  | Stupeflip - The Hypnoflip Invasion, 11  | Joy Division - Unknown Pleasures, 79  | Busta Rhymes - The Coming  | Bérurier Noir - Concerto pour Détraqués, 85  | Herman Düne - Mas Cambios  | Nic Endo - Cold Metal Perfection HD  | Cypress Hill - Eurockéennes, 12  | Redman - Muddy Waters, 96  | John Lennon, The Lost Sleepy Blind Lemon Lennon Album, 90  | Bad Brains - Bad Brains, 82  | Sexy Sushi - Ca M'aurait Fait Chier D'exploser  | Bérurier Noir - Macadam Massacre, 83  | Pink Floyd live @ pompeii  | The Residents - The Commercial Album, 80  | City Morgue Vol 1: Hell or high water  | Joanna Newsom - Ys  | Die Antwoord - $O$ (full album)  | Aphex Twin - 26 Mixes For Cash [1]  | Bérurier Noir - Ils Veulent Nous Tuer, 88  | White Zombie - Astro Creep 2000, 95  | System of A Down- System of A Down, 98  | Tyrannosaurus Rex - Prophets, Seers & Sages: The Angels of the Ages  | Snoop Dogg - Da Game Is To Be Sold... 98  | The Velvet Underground - Loaded  | Edith Piaf - La Vie En Rose  | Black Sabbath - 13, 13  | Hawkwind - Masters Of The Universe  | Joanna Newsom - The Milk-Eyed Mender  | Aristide Bruant - le meilleur de, 20  | Macka B - Discrimination (95)  | Marilyn Manson - Lest We Forget: The Best Of  | Yat-Kha - Yenisei Punk - Full Album  | Body Count - BODY COUNT, 92  | Iron Butterfly - In-a-Gadda-da-Vida  | Elliott Smith - XO  | Kool Shen - Dernier Round - 04 (ALBUM)  | Marin Marais - Works for viola Da Gamba (XVII th century)  | Psycho realm - The Psycho realm, 97  | OFWGKTA Tyler the Creator - CHERRY BOMB FULL ALBUM  | Nirvana - In Utero  | Serge Gainsbourg - Cannabis, 70  | Cypress Hill - Stoned Raiders (Full Album)  | Sonic Youth - Confusion Is Sex & Kill Yr. Idols  | Joanna Newsom - Walnut Whales, EP  | Joy Division - Closer, 80  | Leo ferré chante Aragon  | Cypress Hill - los grande exitos en espagñol  | Method Man & Redman - Blackout!  | Bloodhound Gang - Hooray For Boobies  | Neu! - Neu! 2  | MellowHype - Numbers, 12  | Bloodhound Gang - One Fierce Beer Coaster  | Orties - Sextape [Le Musicologue]  | Marilyn Manson : Guns, God and The Government 1h20  | Stupeflip - The Hypnoflip Invasion Live - 12  | OFWGKTA Tyler, The Creator - Goblin (Full Album)  | Marilyn Manson - The Golden Age of Grotesque  | Alec Empire - Shivers  | Public Image Ltd. - Second Edition !!!  | Jordi Savall: Lachrimae Caravaggio (Hespèrion XXI)  | The Stooges, 69  | The Doors - An American Prayer  | Die Antwoord Mount Ninji and the Nice Time Kid full album  | Broadcast - Tender Buttons ♥  | Tenacious D - Pick of destiny  | OFWGKTA Earl Sweatshirt - Doris (13) (Full Album)  | Atari Teenage Riot - Delete Yourself!  | Bloodhound Gang - Hefty Fine  | Nusrat Fateh Ali Khan en concert à Paris  | Zappa & Shankar - Touch Me There, 84  | Dark trap : chapter 4  | Malicorne - Almanach, 76  | Ben Lee - Grandpaw would  | The Shaggs - Philosophy of the world, 69  | The Doors - Morrison Hotel  | Malicorne - Les Cathédrales de l'Industrie, 86  | Nirvana - 11/18/89 - Kultur-Basar, Hanau, West Germany [SBD #1]  | Black Sabbath - Master of Reality, 71  | Marilyn Manson - The Last Tour On Earth, Live  | Sopor Æternus & The Ensemble Of Shadows - Dead Lover's Sarabande (1&2) 99  | Jeru The Damaja - The Sun Rises In The East  | White Zombie - La Sexorcisto : Devil Music V 1, 92  | Washboard Sam - All the Best 57'.17"  | The Rolling Stones - Voodoo Lounge  | Elliott Smith - Figure 8, 00  | Truly - Fast Stories...From Kid Coma  | Nirvana - Unplugged  | Syd Barrett - Barrett, 69  | Marilyn Manson - Heaven Upside Down 17  | Marilyn Manson - The Pale Emperor (Deluxe Version)  | Marilyn Manson - Eat me, drink me  | Alec Empire - Futurist  | Broadcast - The Black Session [Radio Paris, 4/5/00]  | Ghostface Killah - The Brown Tape  | Tenacious D  | Joy Division - Substance  | Sexy Sushi - Tu L'as Bien Mérité!  | The Smashing Pumpkins- Carnival Of Unkempt Secrets  | Ouija Macc - Gutterwater  | Blind Lemon Jefferson - Complete Vol B  | Brigitte Fontaine - Comme à la radio (Full Album)  | Ouija Macc - Resistance 2  | Ministère AMER - Pourquoi tant de haine, 92  | björk - debut  | Ô Paon - Live in Warsaw 08 / Full Set  | Black Sabbath - Paranoid (Vinyl) 70  | W.A. Mozart - Requiem in D minor KV 626 - v Ka, Berlin PO  | The Doors - Rock Is Dead - Rare The Complete Session, 69  | OFWGKTA Odd Future - Radical - Tracklist  | Beethoven: The 9 Symphonies - B. Philharmoniker / Karajan 63 1/38  | OFWGKTA Tyler, The Creator - WOLF [Full Album: Deluxe Edition]  | Guns 'n Roses - Appetite For Destruction, 87  | OFWGKTA Odd Future Tape Vol. 2 - Tracklist  | Dark trap . mp4 chapter 1  | Slash's Snakepit: It's Five O'Clock Somewhere  | Prodigy - H.N.I.C. 00  | Slash - Apocalyptic Love  | Bloodhound Gang - Use Your Fingers lyr.  | Nirvana - Bleach, 1989  | Nirvana - 03/19/88 - Community World Theater, Tacoma, WA [SBD #1][1st concert. 5$ entry]  | The Smashing Pumpkins Greatest Hits Judas o  | Renaud Papillon Paravel - La langue de la bestiole  | Renaud Papillon Paravel - Avec la langue EP 13  | Easy Star All-Stars - Dub Side Of The Moon  | Layzie Bone & Young Noble - Thug Brothers  | My Bloody Valentine - M B V, 13  | MGMT - Oracular Spectacular  | John Lennon - The Alternate Plastic Ono Band Album  | Nas - Illmatic (Full Album)  | M.I.A. - Kala / 10th anniversary celebration 17  | Ministère AMER - 95200, 94  | The Smashing Pumpkins - Siamese Dream  | Depeche Mode - Songs Of Faith And Devotion (Live)  | Brigitte Fontaine & Areski - Vous & Nous  | Fats Domino - This is Fats Full Album 1/11  | Bérurier Noir - Souvent Fauché, Toujours Marteau ! - Full Album, 89  | Hodgy Beats- The Dena Tape, 13  | Broadcast - Haha Sound, 03  | Stupeflip - Paléo Festival Nyon - 13  | Cypress Hill - III Temples Of Boom, 95  | Local H - Pack Up The Cats, 98  | Mobb Deep - The Infamous HQ  | Alec Empire - The Golden Foretaste Of Heaven  | The Legend of Sleepy John Estes [62]  | Twisted Insane - The Insane Asylum  | Aphex Twin - Selected Ambient Works 85-92  | Juliette Gréco  | Rob Zombie - The sinister urge  | $uicide Boy$ x Ghostemane x XXXTENTACION MIX  | Doc Gynéco - Première consultation  | Babes In Toyland - Spanking Machine  | Marilyn Manson - Mechanical Animals  | Red Fang - Red Fang 09  | Albin de La Simone, Bouffes-du-Nord, Paris 030614  | Psykopat - L'invasion ... 98  | OFWGKTA Tyler, the Creator - Dinosaur EP (Full Album)  | Ô Paon & Woelv (Geneviève Castrée)  | Black Sabbath - Black Sabbath, 70  | Prodigy & Alchemist - Albert Einstein, 13  | The Rolling Stones - Exile On Main St.  | Rob Zombie - The Lords of Salem (Soundtrack)  | Lightspeed Champion - Falling Off the Lavender Bridge, 08  | Elliott Smith - An Introduction To...  | Aphex Twin - DRUKQS  | Cypress Hill - Skull & Bones  | Aphex Twin - 26 Mixes For Cash [2]  | 

programmation



visites - 0/p
---
>>> Ø;

---
<?php  
/*Un premier exemple : graphique des visiteurs 

pour appliquer ces quelques notions, voici un premier exemple assez simple. 
On desire pouvoir g&eacute;n&eacute;rer un histogramme (graphique sous forme de "batons")
repr&eacute;sentant le nombre de visites sur votre site web sur les 12 mois de l'ann&eacute;e. 

On supposera que vous avez d&eacute;jà r&eacute;alis&eacute; la partie comptabilisation 
des visites (dans une table mysQl par exemple), on ne s'y &eacute;tendra pas ce n'est pas
le but du tutorial. imaginons donc que le nombre de visites pour chacun des 12 mois est 
plac&eacute; dans le tableau $visites. ici ce tableau sera remplis "à la main", mais ce 
serait à vous de le remplir en fonction de votre table mySQl. 

a) les visites, l'image et les couleurs

On commence donc par créer un tableau contenant les visites sur 12 mois (donc 12 valeurs).
On crée ensuite une image 400x300 et on crée trois couleurs, dont la première (le blanc) 
sera la couleur du fond. 

visites.php

--------------------------------------------------------------------------------
*/
    
$visites = array(138254381652896720140556663331407768); 

    
header ("Content-type: image/png");  
    
$largeurimage 400
    
$hauteurimage 300
    
$im imagecreate ($largeurimage$hauteurimage)  
            or die (
"Erreur lors de la cr&eacute;ation de l'image");          
    
$blanc imagecolorallocate ($im255255255);  
    
$noir imagecolorallocate ($im000);   
    
$bleu imagecolorallocate ($im00255);         
      

/*
b) On dessine les axes

On place l'axe vertical du temps (un simple trait noir) en bas de l'image, en laissant une 
marge de 10 points. 
On &eacute;crit en dessous le num&eacute;ro de chacun des mois en utilisant une simple 
boucle for et la fonction imageString. les numeros de mois sont plac&eacute;s tous les 30 
points en partant de la gauche de l'image.
Enfin on trace un trait vertical repr&eacute;sentant l'axe vertical du nombre de visites.

*/

    // on dessine un trait vertical pour repr&eacute;senter l'axe du temps     
    
imageline ($im10$hauteurimage-10$largeurimage-10$hauteurimage-10$noir); 
    
// on affiche le num&eacute;ro des 12 mois 
    
for ($mois=1$mois<=12$mois++) { 
        
imagestring ($im0$mois*30$hauteurimage-10$mois$noir); 
    } 
     
    
// on dessine un trait vertical pour repr&eacute;senter le nombre de visites 
    
imageline ($im101010$hauteurimage-10$noir); 
      
/*

c) On dessine les batons

Voici la partie un peu plus difficile au cours de laquelle on dessine les batons.
Tout d'abord, il nous faut le nombre de visites maximal que nous aurons à tracer sur le 
graphe. ici, la valeur est pos&eacute;e arbitrairement (1000), mais en r&eacute;
alit&eacute; il faudrait la calculer en parcourant le tableau des visites à la recherche de 
son maximum, mais faisons simple...
pour chacun des mois, il faut calculer la hauteur du rectangle que l'on veut tracer. pour 
cela on fait un produit en croix sachant que la hauteur du rectangle pour le nombre de 
visites maximum serait &eacute;gale (pour simplifier) à la hauteur de l'image. a partir du 
nombre de visites pour un mois donn&eacute; on en d&eacute;duit la hauteur voulue.
il ne reste plus qu'à le tracer chaque rectangle, en commençant par son point sup&eacute;
rieur gauche et en finissant par son point inf&eacute;rieur droit.
pour am&eacute;liorer les choses, on ajoute le nombre de visites au dessus de chaque 
rectangle. 

*/
    // le nombre maximum de visites 
    
$visitesmax 1000
     
    
// trac&eacute; des batons 
    
for ($mois=1$mois<=12$mois++) { 
        
$hauteurimagerectangle round(($visites[$mois-1]*$hauteurimage)/$visitesmax); 
        
imagefilledrectangle ($im$mois*30-7$hauteurimage-$hauteurimagerectangle$mois*30+7$hauteurimage-10$bleu); 
        
imagestring ($im0$mois*30-7$hauteurimage-$hauteurimagerectangle-10$visites[$mois-1], $noir); 
    } 
     
    
// et c'est fini... 
    
imagepng ($im);  

/*
d) Et voila !

Bien sûr le r&eacute;sultat n'est pas superbe, mais on obtient quelque chose de présentable 
en une vingtaine de lignes, ce qui n'est pas si mal ni si difficile...
*/

?>   


cheese3D - 0/p
---
>>> Ø;

---
<?php 
#http://www.phpcs.com/codes/CAMEMBERTS-3D_34131.aspx
/*
- Date de cr&eacute;ation : 18/09/2005
- nom : camembert.php
- auteur : opossum_farceur.
- Object : les camemberts 3D.
- Source : http://fr3.php.net/manual/fr/function.imagefilledarc.php
*/

function camembert($arr)
{
   
$size=3;                  /* taille de la police, largeur du caractère */
   
$ifw=imagefontwidth($size);

   
$w=500;                   /* largeur de l'image */
   
$h=250;                   /* hauteur de l'image */
   
$a=120;                   /* grand axe du camembert */
   
$b=$a/2;                  /* 60 : petit axe du camembert */
   
$d=$a/4;                  /* 60 : "&eacute;paisseur" du camembert */
   
$cx=$w/2-1;               /* abscisse du "centre" du camembert */
   
$cy=($h-$d)/2;            /* 95 : ordonn&eacute;e du "centre" du camembert */

   
$A=138;                   /* grand axe de l'ellipse "englobante" */
   
$B=102;                   /* petit axe de l'ellipse "englobante" */
   
$oy=-$d/2;                /* -30 : du "centre" du camembert à celui de l'ellipse "englobante"*/

   
$img=imagecreate($w,$h);  
   
$bgcolor=imagecolorallocate($img,0xCD,0xCD,0xCD);
   
imagecolortransparent($img,$bgcolor);
   
$black=imagecolorallocate($img,0,0,0);
                             
/* calcule la somme des donn&eacute;es */
   
for ($i=$sum=0,$n=count($arr);$i<$n;$i++) $sum+=$arr[$i][0];

   
/* fin des pr&eacute;liminaires : on peut vraiment commencer! */
   
for ($i=$v[0]=0,$x[0]=$cx+$a,$y[0]=$cy,$doit=true;$i<$n;$i++) {
      for (
$j=0,$k=16;$j<3;$j++,$k-=8$t[$j]=($arr[$i][1]>>$k) & 0xFF;
                             
/* d&eacute;termine les "vraies" couleurs */
      
$color[$i]=imagecolorallocate($img,$t[0],$t[1],$t[2]);
                             
/* calcule l'angle des diff&eacute;rents "secteurs" */
      
$v[$i+1]=$v[$i]+round($arr[$i][0]*360/$sum);

      if (
$doit) {           /* d&eacute;termine les couleurs "ombr&eacute;es" */
         
$shade[$i]=imagecolorallocate($img,max(0,$t[0]-50),max(0,$t[1]-50),max(0,$t[2]-50));

         if (
$v[$i+1]<180) { /* calcule les coordonn&eacute;es des diff&eacute;rents parall&eacute;logrammes */
            
$x[$i+1]=$cx+$a*cos($v[$i+1]*M_PI/180);
            
$y[$i+1]=$cy+$b*sin($v[$i+1]*M_PI/180);
         }
         else {
            
$m=$i+1;
            
$x[$m]=$cx-$a;   /* c'est comme si on remplaçait $v[$i+1] par 180° */
            
$y[$m]=$cy;
            
$doit=false;     /* indique qu'il est inutile de continuer! */
         
}
      }
   }

   
/* dessine la "base" du camembert */
   
for ($i=0;$i<$m;$i++) imagefilledarc($img,$cx,$cy+$d,2*$a,2*$b,$v[$i],$v[$i+1],$shade[$i],IMG_ARC_PIE);

   
/* dessine la partie "verticale" du camembert */
   
for ($i=0;$i<$m;$i++) {
      
$area=array($x[$i],$y[$i]+$d,$x[$i],$y[$i],$x[$i+1],$y[$i+1],$x[$i+1],$y[$i+1]+$d);
      
imagefilledpolygon($img,$area,4,$shade[$i]);
   }

   
/* dessine le dessus du camembert */
   
for ($i=0;$i<$n;$i++) imagefilledarc($img,$cx,$cy,2*$a,2*$b,$v[$i],$v[$i+1],$color[$i],IMG_ARC_PIE);

   
#imageellipse($img,$cx,$cy-$oy,2*$A,2*$B,$black); // dessine l'ellipse "englobante"

   /* dessine les "flêches" et met en place le texte */
   
for ($i=0,$AA=$A*$A,$BB=$B*$B;$i<$n;$i++) if ($arr[$i][0]) {
      
$phi=($v[$i+1]+$v[$i])/2;      
                             
/* intersection des "flêches" avec l'ellipse "englobante" */
      
$px=$a*3*cos($phi*M_PI/180)/4;
      
$py=$b*3*sin($phi*M_PI/180)/4;
                             
/* &eacute;quation du 2ème degr&eacute; avec 2 racines r&eacute;elles et distinctes */
      
$U=$AA*$py*$py+$BB*$px*$px;        
      
$V=$AA*$oy*$px*$py;
      
$W=$AA*$px*$px*($oy*$oy-$BB);
                             
/* calcule le pourcentage à afficher */
      
$value=number_format(100*$arr[$i][0]/$sum,2,',','').'%';
                             
/* &eacute;crit le texte à droite */
      
if ($phi<90 || $phi>270) {          
         
$root=(-$V+sqrt($V*$V-$U*$W))/$U;
         
imageline($img,$px+$cx,$py+$cy,$qx=$root+$cx,$qy=$root*$py/$px+$cy,$black);
         
imageline($img,$qx,$qy,$qx+10,$qy,$black);

         
imagestring($img,$size,$qx+14,$qy-12,$arr[$i][2],$black);
         
imagestring($img,$size,$qx+14,$qy-2,$value,$black);
      }
      else {                 
/* &eacute;crit le texte à gauche */
         
$root=(-$V-sqrt($V*$V-$U*$W))/$U;
         
imageline($img,$px+$cx,$py+$cy,$qx=$root+$cx,$qy=$root*$py/$px+$cy,$black);
         
imageline($img,$qx,$qy,$qx-10,$qy,$black);

         
imagestring($img,$size,$qx-12-$ifw*strlen($arr[$i][2]),$qy-12,$arr[$i][2],$black);
         
imagestring($img,$size,$qx-12-$ifw*strlen($value),$qy-2,$value,$black);
      }
   }

   
header('Content-type: image/png');
   
imagepng($img);
   
imagedestroy($img);
}

$arr=array(
/*        donn&eacute;e   couleur    l&eacute;gende */
   
array(    40,  0xFF99CC,   'Loisirs'),
   array(    
80,  0xFF9900,   'Assurance'),
 
#  array(    120,  0xFF9900,   'Assurance'),
   
array(   160,  0xFFCB03,   'Credits'),
   array(   
160,  0x99CC00,   'Carburant'),
   array(   
200,  0x339966,   'Charges'),
   array(   
240,  0x33CCCC,   'Rentr&eacute;e'),
   array(   
280,  0x0091C3,   'Nourriture'),
   array(   
340,  0x969696,   'Loyer')
);
#            1500
camembert($arr);                          /* enjoy! */
?>