diff --git a/p5js_instance/sketch/sketch.js b/p5js_instance/sketch/sketch.js index fd34cf5..6e82e20 100644 --- a/p5js_instance/sketch/sketch.js +++ b/p5js_instance/sketch/sketch.js @@ -19,7 +19,7 @@ import Chamber from "../classes/chamber.js"; import autoResizeFrame from "../utils/frameResize.js"; console.log(import.meta); export default function sketch(p) { - const BALLS = 4, balls = Array(BALLS).fill(null), CHAMBERS = 8, chambers = Array(CHAMBERS).fill(null), BG = 0o350, OUTLINE = 0, WEIGHT = 2, { width: SW, height: SH } = screen, W = frameElement && SW * 30 >> 6 || SW * 63 >> 6, H = frameElement && SH * 71 >> 8 || SH * 3 >> 2; + const BALLS = 4, balls = Array(BALLS).fill(null), CHAMBERS = 8, chambers = Array(CHAMBERS).fill(null), BG = 0o350, OUTLINE = 0, WEIGHT = 2, { width: SW, height: SH } = screen, W = frameElement && SW * 30 >> 6 || SW * 63 >> 6, H = frameElement && SH * 71 >> 8 || SH * 23 >> 5; let bg; p.setup = function () { this.createCanvas(W, H).mousePressed(() => balls.forEach(b => b.respawn())); diff --git a/p5js_instance/sketch/sketch.ts b/p5js_instance/sketch/sketch.ts index 16f5a0f..35c14c9 100644 --- a/p5js_instance/sketch/sketch.ts +++ b/p5js_instance/sketch/sketch.ts @@ -30,7 +30,7 @@ export default function sketch(p: p5) { BG = 0o350, OUTLINE = 0, WEIGHT = 2, { width: SW, height: SH } = screen, W = frameElement && SW * 30 >> 6 || SW * 63 >> 6, - H = frameElement && SH * 71 >> 8 || SH * 3 >> 2; + H = frameElement && SH * 71 >> 8 || SH * 23 >> 5; let bg: p5.Color; diff --git a/pjs_cs/sketch/sketch.coffee b/pjs_cs/sketch/sketch.coffee index 3b303e1..d96e9fd 100644 --- a/pjs_cs/sketch/sketch.coffee +++ b/pjs_cs/sketch/sketch.coffee @@ -35,7 +35,7 @@ export default sketch = (p) -> { width: SW, height: SH } = screen W = if frameElement then SW * 30 >> 6 else SW * 63 >> 6 - H = if frameElement then SH * 71 >> 8 else SH * 3 >> 2 + H = if frameElement then SH * 71 >> 8 else SH * 23 >> 5 p.setup = -> @size W, H diff --git a/pjs_cs/sketch/sketch.js b/pjs_cs/sketch/sketch.js index d8d9a54..9fe4148 100644 --- a/pjs_cs/sketch/sketch.js +++ b/pjs_cs/sketch/sketch.js @@ -36,7 +36,7 @@ export default sketch = function(p) { WEIGHT = 2; SW = screen.width, SH = screen.height; W = frameElement ? SW * 30 >> 6 : SW * 63 >> 6; - H = frameElement ? SH * 71 >> 8 : SH * 3 >> 2; + H = frameElement ? SH * 71 >> 8 : SH * 23 >> 5; p.setup = function() { var bo, cx, cy, di, hy, i, wx; this.size(W, H);