processing / processing/processing-website

Documentation for new attrib() function

Abierto
#354 14 comentarios 0 reacciones 1 asignado Ver en GitHub

@REAS ya está trabajando en esto.

Desde el 16/11/2014.

Lenguaje dominante
MDX
Estrellas
90
Forks
122
Merge medio
1 h 43 min
PR fusionados (30 d)
3

Descripción

float angle;

void setup() {
 size(400, 400, P3D);
 noStroke();
}

void draw() {
 background(0);

 pointLight(200, 200, 200, width/2, height/2, -200);

 translate(width/2, height/2);
 rotateY(angle);

 beginShape(QUADS);
 normal(0, 0, 1);
 fill(50, 50, 200);

 // A scalar attribute named brightness, affecting the next two vertices
 attrib("brightness", 0.1);

 // A vector attribute named tangent, affecting the first vertex
 attrib("tangent", 0.1, 0.8, 0.1);
 vertex(-100, +100);
 // Another tangent vector, affecting the second vertex
 attrib("tangent", -0.3, 1, 0);
 vertex(+100, +100);
 fill(200, 50, 50);

 // A new brightness value, affecting the last two vertices
 attrib("brightness", 0.5);

 attrib("tangent", 0.5, 0.5, 0.1);
 vertex(+100, -100);
 attrib("tangent", 0.1, -0.9, 0);
 vertex(-100, -100);
 endShape();

 angle += 0.01;
}

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.