# I can't make my lorenz attractor balls opaque help pls

**URL:** https://discourse.processing.org/t/i-cant-make-my-lorenz-attractor-balls-opaque-help-pls/44599
**Category:** Coding Questions
**Created:** [June 14, 2024, 10:40pm UTC](https://discourse.processing.org/t/i-cant-make-my-lorenz-attractor-balls-opaque-help-pls/44599 "2024-06-14T22:40:40Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [June 15, 2024, 1:10am UTC](https://discourse.processing.org/t/i-cant-make-my-lorenz-attractor-balls-opaque-help-pls/44599/4 "2024-06-15T01:10:37Z")

</div>

Hello again!

```auto
  fill(255, 255, 0, 128); //yellow and opacity 128
  noStroke();
  sphere(3); // raio das bolota

```

At the end of _function draw()_:

```auto
function draw() {
//background(0);

// Your code...

fill(0, 10); //black and opacity 10
rectMode(CENTER);
rect(0, 0, width, height);
}

```

Always _fill()_ before the shape!

My background was black so that is why I chose black… you may have to change things on your end.

Experiment a little… I was just playing around with this and was done very quickly.

You can always go back and edit your code… as a new user you may have some limitations and have to wait a day.

This will be off the screen:  
`rect(windoWidth, windowHeight, windoWidth, windowHeight);`

I suggest you visit the p5.js web page for tutorials, examples and references and it also has an editor:

> **[home | p5.js](https://p5js.org/)**
>
> p5.js a JS client-side library for creating graphic and interactive experiences, based on the core principles of Processing.

In the p5.js editor on web page I added this to function _setup()_ so it was initially black:  
`background(0);`

I was using the Processing p5 mode editor initially.

This was in the p5.js editor with my suggested code changes:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/3/4/344655db812cc322db45d2ce777d7148bbf5085a.png)

`:)`

---

_[View the full topic](https://discourse.processing.org/t/i-cant-make-my-lorenz-attractor-balls-opaque-help-pls/44599)._
