mirror of
https://github.com/seigler/generative
synced 2025-07-27 07:06:08 +00:00
fix star rendering issue
This commit is contained in:
parent
4d884fa34e
commit
dcfc09a690
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,6 @@ new p5(sketch => {
|
||||||
// layers.blur1 = sketch.createGraphics(width, height, sketch.WEBGL);
|
// layers.blur1 = sketch.createGraphics(width, height, sketch.WEBGL);
|
||||||
// layers.blur2 = sketch.createGraphics(width, height, sketch.WEBGL);
|
// layers.blur2 = sketch.createGraphics(width, height, sketch.WEBGL);
|
||||||
|
|
||||||
window.onhashchange();
|
|
||||||
generate();
|
generate();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -107,6 +106,7 @@ new p5(sketch => {
|
||||||
const directAngle = sketch.random() * Math.PI * 2;
|
const directAngle = sketch.random() * Math.PI * 2;
|
||||||
|
|
||||||
const drawStar = ({x, y}) => {
|
const drawStar = ({x, y}) => {
|
||||||
|
layer.noStroke();
|
||||||
layer.fill(1);
|
layer.fill(1);
|
||||||
layer.circle(
|
layer.circle(
|
||||||
x + sketch.random(-10, 10),
|
x + sketch.random(-10, 10),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue