2 Commits 3185944473 ... b5bc05bd76

Author SHA1 Message Date
  Birk Weiberg b5bc05bd76 single screen portrait resolution 1 year ago
  Birk Weiberg f672aeba68 startup options 1 year ago
2 changed files with 9 additions and 1 deletions
  1. 1 1
      sketch.js
  2. 8 0
      startup.sh

+ 1 - 1
sketch.js

1
let creatures = [];  
1
let creatures = [];  
2
2
3
function setup() {
3
function setup() {
4
  createCanvas(windowWidth, windowHeight);
4
  createCanvas(1080, 1920);
5
    noStroke();
5
    noStroke();
6
  for (let i=0; i<5; i++) {
6
  for (let i=0; i<5; i++) {
7
    creatures.push(new Creature(createVector(random(100, width-100), random(100, height-100)), random(20, 80)));
7
    creatures.push(new Creature(createVector(random(100, width-100), random(100, height-100)), random(20, 80)));

+ 8 - 0
startup.sh

6
6
7
git pull
7
git pull
8
8
9
xrandr --output HDMI-2 --same-as HDMI-1
10
11
xrandr --output HDMI-1 --panning 3840x1080
12
13
xrandr --output HDMI-2 --pos 1080x0
14
15
autorandr --change projection
16
9
chromium-browser --password-store=basic --start-fullscreen http://localhost
17
chromium-browser --password-store=basic --start-fullscreen http://localhost