Skip to content

Commit

Permalink
Reduce background pattern for better heart visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
PawiX25 committed Aug 28, 2024
1 parent 0eb531a commit 4212a2d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions art/HeartOfCircles-PawiX25/index.js
Original file line number Diff line number Diff line change
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 4212a2d

Please sign in to comment.