# Why background('rgba(0,255,0, 0.25)') inoperative？

**URL:** <https://discourse.processing.org/t/why-background-rgba-0-255-0-0-25-inoperative/39517>\
**Category:** Beginners\
**Created:** [October 31, 2022, 3:29am UTC](https://discourse.processing.org/t/why-background-rgba-0-255-0-0-25-inoperative/39517 "2022-10-31T03:29:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guanzhuyu](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@guanzhuyu](https://discourse.processing.org/u/guanzhuyu)\
**Post date:** [October 31, 2022, 3:29am UTC](https://discourse.processing.org/t/why-background-rgba-0-255-0-0-25-inoperative/39517/1 "2022-10-31T03:29:30Z")

</div>

hello i us background(‘rgba(0,255,0, 0.25)’) in my code,but the Alpha inoperative?  
the browser is chrome (107.0.5304.88)

background(‘rgba(0,255,0, 0.25)’);  
 ![1667186860737](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/0/7/0760c02d84f6a8fdbff1a293743b9eff2cb2ebdd.png)

---

<div class="post-metadata">

**Author:** ![Tiemen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tiemen/32/5477_2.png) [@Tiemen](https://discourse.processing.org/u/Tiemen)\
**Post date:** [October 31, 2022, 8:46am UTC](https://discourse.processing.org/t/why-background-rgba-0-255-0-0-25-inoperative/39517/2 "2022-10-31T08:46:03Z")

</div>

I tested your code in Firefox and Chrome (version 107.0.5304.88 as well), and the alpha is displaying properly. Did you remember to refresh your web page after saving your sketch?

Perhaps you have a typo somewhere. Just to make sure that isn’t the issue try it with this code:

```auto
function setup() {
  createCanvas(100, 100, WEBGL);
}

function draw() {
  background('rgba(0, 255, 0, 0.25)');
  rotateY(millis() / 1000);
  noFill();
  stroke(255, 204, 0);
  strokeWeight(1);
  sphere(40);
}

```

You could also check the `Console` in Chrome and see if it mentions any errors. To open your console:

1. Right mouse click on the web page where your sketch is shown
2. Press `Inspect`
3. Press the `Console` tab somewhere in the top
