Skip to content

Commit

Permalink
Arreglo en la velocidad del sketch
Browse files Browse the repository at this point in the history
  • Loading branch information
dibullap committed Jun 11, 2024
1 parent 796ccc6 commit 578ae3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion content/docs/shortcodes/Quadrille Renderer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ weight: 1
---
# Quadrille Renderer

{{< p5-iframe sketch="/graphics-playground/sketches/quadrille-renderer/sketch.js" lib1= "https://cdn.jsdelivr.net/gh/objetos/p5.quadrille.js/p5.quadrille.js" width="520" height="520">}}
{{< p5-iframe sketch="/graphics-playground/sketches/quadrille-renderer/sketch.js" lib1= "https://cdn.jsdelivr.net/gh/objetos/p5.quadrille.js/p5.quadrille.js" width="450" height="450" >}}

## What is `quadrille.js`?

Expand Down
7 changes: 4 additions & 3 deletions content/sketches/quadrille-renderer/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ let fov;
let origen;

function setup() {
createCanvas(COLS * Quadrille.cellLength, ROWS * Quadrille.cellLength);
angleMode(RADIANS);
Quadrille.cellLength = 5;
Quadrille.outlineWeight = 0;
createCanvas(COLS * Quadrille.cellLength, ROWS * Quadrille.cellLength);
angleMode(RADIANS);
console.log(width, height);
quadrille = createQuadrille(ROWS, COLS);
cubo = {
vertices: [
Expand Down Expand Up @@ -54,7 +55,7 @@ function draw() {
background(0);
quadrille.clear();

qRotateX(cubo.vertices, 0.1);
qRotateX(cubo.vertices, 0.05);
let triangs3D = qTriangles(cubo);
let triangs2D = qProyectTriangles(triangs3D, fov, qCam, origen);

Expand Down

0 comments on commit 578ae3d

Please sign in to comment.