mirror of
https://github.com/seigler/generative
synced 2025-07-26 06:46:10 +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.blur2 = sketch.createGraphics(width, height, sketch.WEBGL);
|
||||
|
||||
window.onhashchange();
|
||||
generate();
|
||||
};
|
||||
|
||||
|
@ -107,6 +106,7 @@ new p5(sketch => {
|
|||
const directAngle = sketch.random() * Math.PI * 2;
|
||||
|
||||
const drawStar = ({x, y}) => {
|
||||
layer.noStroke();
|
||||
layer.fill(1);
|
||||
layer.circle(
|
||||
x + sketch.random(-10, 10),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue