This commit is contained in:
abe- 2017-06-17 17:18:45 +02:00
parent 15592127d7
commit 25d24585b8

View file

@ -25,8 +25,8 @@ function preload() {
function setup() { function setup() {
pg = createGraphics(800, 519); pg = createGraphics(800, 519);
var as = 519. / 800.; var as = 519. / 800.;
var w = windowWidth; var w = document.innerWidth;
var h = windowWidth*as; var h = document.innerHeight*as;
createCanvas(w,h); createCanvas(w,h);
nombres = new Array("Norte","Duero","Ebro","Pirineo","Jucar","Tajo","Guadiana","Guadalquivir","Sur", "Segura", "Baleares y Canarias"); nombres = new Array("Norte","Duero","Ebro","Pirineo","Jucar","Tajo","Guadiana","Guadalquivir","Sur", "Segura", "Baleares y Canarias");