# A newbie needs help

**URL:** https://discourse.processing.org/t/a-newbie-needs-help/28832
**Category:** Beginners
**Tags:** homework
**Created:** [March 25, 2021, 11:46am UTC](https://discourse.processing.org/t/a-newbie-needs-help/28832 "2021-03-25T11:46:53Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![javagar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/javagar/32/11434_2.png) [@javagar](https://discourse.processing.org/u/javagar)
#### Post date: [March 25, 2021, 12:04pm UTC](https://discourse.processing.org/t/a-newbie-needs-help/28832/2 "2021-03-25T12:04:57Z")

</div>

Hello, @xiquip, and welcome to the Processing Forum!

Be careful with spelling in your program. Notice that you have this:

```auto
var triancle Y =

```

Please fix the spelling, and be aware that the name of a variable cannot include a space.

A useful resource for p5.js programmers is the [p5.js Reference](https://p5js.org/reference/).

That reference contains this: [Reference: `random()`](https://p5js.org/reference/#/p5/random). An alpha value can range from `0` to `255`, inclusive. It should be a whole number.

Let’s first see if you can use the information in the reference to assign an appropriate random number to `triangleOpacity` in your program. That will serve as the alpha value. Please post the statement that accomplishes that task here, and we will help you with refining it, as necessary.

For your program to execute, you will need to correct all the spelling mistakes, as well as assign values to all the variables. For example, you can do this:

```auto
  var triangleX = 120;

```

_Edited on March 25, 2021 to add the following:_

Your posted code is difficult to read, since it is not formatted properly for posting. See [Guidelines—Asking Questions](https://discourse.processing.org/t/guidelines-asking-questions/2147) for lots of useful advice, including information on how to format code for posting.

---

_[View the full topic](https://discourse.processing.org/t/a-newbie-needs-help/28832)._
