BacASable : Différence entre versions

De fablabo
Aller à : navigation, rechercher
(ProcessingJS)
(ProcessingJS)
Ligne 64 : Ligne 64 :
 
====ProcessingJS====
 
====ProcessingJS====
  
<processingjs>void setup(){
+
<processingjs>
size(300, 200);
+
/*
background(100);
+
  PROCESSINGJS.COM - BASIC EXAMPLE
stroke(255);
+
  Delayed Mouse Tracking 
ellipse(150, 50, 25, 25);
+
  MIT License - Hyper-Metrix.com/F1LT3R
 +
  Native Processing compatible
 +
*/ 
 +
 
 +
// Global variables
 +
float radius = 50.0;
 +
int X, Y;
 +
int nX, nY;
 +
int delay = 16;
 +
 
 +
// Setup the Processing Canvas
 +
void setup(){
 +
  size( 200, 200 );
 +
  strokeWeight( 10 );
 +
  frameRate( 15 );
 +
  X = width / 2;
 +
  Y = width / 2;
 +
  nX = X;
 +
  nY = Y; 
 +
}
 +
 
 +
// Main draw loop
 +
void draw(){
 +
 
 +
  radius = radius + sin( frameCount / 4 );
 +
 
 +
  // Track circle to new destination
 +
  X+=(nX-X)/delay;
 +
  Y+=(nY-Y)/delay;
 +
 
 +
  // Fill canvas grey
 +
  background( 100 );
 +
 
 +
  // Set fill-color to blue
 +
  fill( 0, 121, 184 );
 +
 
 +
  // Set stroke-color white
 +
  stroke(255);  
 +
 
 +
  // Draw circle
 +
  ellipse( X, Y, radius, radius );                
 
}
 
}
void loop(){
+
 
background(100);
+
 
ellipse(mouseX, 50, 25, 25);
+
// Set circle's next destination
 +
void mouseMoved(){
 +
  nX = mouseX;
 +
  nY = mouseY;
 
}
 
}
 +
 
</processingjs>
 
</processingjs>
  
{{#processingjs:void setup() {
+
 
    size(200, 290);
 
    background(100);
 
  stroke(255);
 
  ellipse(50, 50, 25, 25);
 
  println('hello web!');
 
  }
 
}}
 
  
  

Version du 30 mars 2012 à 14:57

c'est un test avec semantic


Modèle:outil Machines:FraiseuseCNC

Property test: Dummypage


arbre des categories <ncl style=compact headings=bullet showcats=1 showarts=0 >Category:Outils</ncl>



requete avec show {{#show: Machines:FraiseuseCNC | ?taille#cm}}

la FraiseuseCNC peut travailler sur cm


requete avec Ask :(qui marche pas encore)

{{#ask: [[Category:Machines]] |?materiaux=matières | ?taille#cm = surface de travail | ?Modele }}

CNC

  FonctionTypesurface de travail
Asimov1Asimov1Impression3D (définition)Imprimante3D
Asimov2Asimov2Impression3D (définition)Imprimante3D
Asimov3Asimov3Impression3D (définition)Imprimante3D
Aspirateur FestoolAspirateur FestoolAspirerAspirateur
Atelier ElectroniqueAtelier Electronique
BCNCBCNC
Brodeuse Numérique BrotherNV800EBrodeuse Numérique BrotherNV800EBroderie, point de croixBrodeuse numérique
BroyeuseBroyeuseBroyer du plastiqueBroyeuse
CNC-MDX20CNC-MDX20Fraisage-scanner3DFraiseuseCNC
CNC-SentierBattuCNC-SentierBattuFraisageFraiseuseCNC
… autres résultats


---




arbre des catégories


test http://www.google.fr/intl/fr_ALL/images/logos/images_logo_lg.gif


ProcessingJS

<processingjs> /*

 PROCESSINGJS.COM - BASIC EXAMPLE
 Delayed Mouse Tracking  
 MIT License - Hyper-Metrix.com/F1LT3R
 Native Processing compatible 
  • /

// Global variables float radius = 50.0; int X, Y; int nX, nY; int delay = 16;

// Setup the Processing Canvas void setup(){

 size( 200, 200 );
 strokeWeight( 10 );
 frameRate( 15 );
 X = width / 2;
 Y = width / 2;
 nX = X;
 nY = Y;  

}

// Main draw loop void draw(){

 radius = radius + sin( frameCount / 4 );
 
 // Track circle to new destination
 X+=(nX-X)/delay;
 Y+=(nY-Y)/delay;
 
 // Fill canvas grey
 background( 100 );
 
 // Set fill-color to blue
 fill( 0, 121, 184 );
 
 // Set stroke-color white
 stroke(255); 
 
 // Draw circle
 ellipse( X, Y, radius, radius );                  

}


// Set circle's next destination void mouseMoved(){

 nX = mouseX;
 nY = mouseY;  

}

</processingjs>





page speciale : raquette


http://www.slideshare.net/baojie_iowa/a-short-tutorial-to-semantic-media-wiki-smw

http://semantic-mediawiki.org/wiki/SMWCon_Spring_2011_-_Tutorials

http://semantic-mediawiki.org/wiki/Help:%C3%89diter