Skip to content

Commit

Permalink
Reduce background pattern density and shape sizes to enhance heart sh…
Browse files Browse the repository at this point in the history
…ape visibility
  • Loading branch information
PawiX25 authored Aug 28, 2024
1 parent 0eb531a commit 18cb568
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions art/HeartOfCircles-PawiX25/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
*
@title: HeartOfCircles
@author: PawiX25
@snapshot: 3.png
Expand Down Expand Up @@ -31,17 +31,17 @@ function generateHeartWaveArt(seed, randomFactor) {
const shapeType = bt.randIntInRange(0, 2); // 0: Circle, 1: Ellipse, 2: Polygon

if (shapeType === 0) {
const radius = bt.rand() * 2;
const radius = bt.rand() * 1.5;
const backgroundCircle = createCircle(x, y, radius, 20);
drawLines([backgroundCircle]);
} else if (shapeType === 1) {
const radiusX = bt.rand() * 3;
const radiusY = bt.rand() * 2;
const radiusX = bt.rand() * 2;
const radiusY = bt.rand() * 1.5;
const backgroundEllipse = createEllipse(x, y, radiusX, radiusY, 20);
drawLines([backgroundEllipse]);
} else {
const sides = bt.randIntInRange(3, 6); // Random polygon with 3 to 6 sides
const radius = bt.rand() * 2;
const sides = bt.randIntInRange(3, 5);
const radius = bt.rand() * 1.5;
const backgroundPolygon = createPolygon(x, y, radius, sides);
drawLines([backgroundPolygon]);
}
Expand Down

0 comments on commit 18cb568

Please sign in to comment.