Skip to content

Commit 7f13616

Browse files
committed
better aspect ratio
1 parent f4401de commit 7f13616

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

demos/dynamical-systems/firefly-synchronization.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ class FireflySynchronizationDemo extends P5DemoBase {
3838
}
3939

4040
protected getAspectRatio(): number {
41-
return 0.6; // Wider canvas for the field
41+
return 0; // Full width, height determined by maxHeightPercent
42+
}
43+
44+
protected getMaxHeightPercent(): number {
45+
return 0.7;
4246
}
4347

4448
private initializeFireflies(p: p5): void {

0 commit comments

Comments
 (0)