Skip to content

Instantly share code, notes, and snippets.

@franciscojsc
Created April 8, 2018 02:24
Show Gist options
  • Save franciscojsc/2bdab37fef9e49afd0a1670f467a99ac to your computer and use it in GitHub Desktop.
Save franciscojsc/2bdab37fef9e49afd0a1670f467a99ac to your computer and use it in GitHub Desktop.
Revisão de alguns comando ProcessingJS

Curso de Programação - JavaScript e Processing

Revisão

  • point(posiçãoX, posiçãoY);
  • line(posiçãoX1, posiçãoY1, posiçãoX2, posiçãoY2);
  • strokeWeight(espressura);
  • stroke(vermelho, verde, azul, alpha);
  • fill(vermelho, verde, azul, alpha);
  • background(vermelho, verde, azul, alpha);
  • ellipse(posiçãoX, posiçãoY, largura, altura);
  • rect(posiçãoX, posiçãoY, largura, altura);
  • noStroke();
  • random(min, max);
  • whith e height
draw = function(){
//javascript
};

void draw(){
//processing
};
  • frameRate(fps);
  • frameCount
  • println(dado);
  • rectMode(MODO); //MODO = CENTER, CORNER, CORNERS, RADIUS
  • ellipseMode(MODO); //MODO = CENTER, CORNER, CORNERS, RADIUS

Fonte:

https://www.youtube.com/watch?v=_pEFS52y7W4&list=PLq3pVjLbELs5C9cdYxdo6f5s_Zu1ASvHb&index=6 http://processingjs.org/reference/
https://pt.khanacademy.org/computing/computer-programming/pjs-documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment