# Need help in processing function

**URL:** <https://discourse.processing.org/t/need-help-in-processing-function/2875>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [August 23, 2018, 4:58am UTC](https://discourse.processing.org/t/need-help-in-processing-function/2875 "2018-08-23T04:58:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![avro](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@avro](https://discourse.processing.org/u/avro)\
**Post date:** [August 23, 2018, 4:58am UTC](https://discourse.processing.org/t/need-help-in-processing-function/2875/1 "2018-08-23T04:58:42Z")

</div>

- Define a function call BuildTheWall that gets the parameters/inputs (the size of each rectangle width or/and height), x coordinate and y coordinate of the first and the last point.
- The function should draw the rectangles with colour pattern(red, green, dark blue)
- the function should write the work “start” and the starting point and the point “end” at the end point.
- The function write " The are ??? rectangles" with the correct number of drawn rectangles
- call the function in setup function and pass parameters of your choice.
- In setup function call the function buildTheWall and store the return of the function in a variable call num.

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [August 23, 2018, 5:22am UTC](https://discourse.processing.org/t/need-help-in-processing-function/2875/2 "2018-08-23T05:22:20Z")

</div>

Haha, you are not looking for help, you are looking for someone to do your homework…

Nobody on this forum will help you unless you provide some code showing what you have tried and explaining what is the problem that you face.

Please consider reading this post:

> [@Guidelines—Asking Questions](https://discourse.processing.org/t/guidelines-tips-on-asking-questions/2147):
>
> Summary (TL;DR) Ask complete questions to get better answers! Be specific. For example: I want to load an image. I tried using createImg() , and I expected the image to be on canvas, but what happened instead was the image showing up below the canvas. Isolate your problem and work in small steps. Share only the code directly related to your problem if it is part of a bigger project, and if something isn’t working, try the smallest code that could do the thing you want. Can we run your code to …

---

<div class="post-metadata">

**Author:** ![MxFxM](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@MxFxM](https://discourse.processing.org/u/MxFxM)\
**Post date:** [August 23, 2018, 6:36am UTC](https://discourse.processing.org/t/need-help-in-processing-function/2875/3 "2018-08-23T06:36:50Z")

</div>

I learned that I am no longer allowed to give you the code but here is a nice quote from the guidelines:

> [@Guidelines—Answering Questions](https://discourse.processing.org/t/guidelines-answering-questions/2145/1):
>
> The only way to learn it is by going through it

Have fun.

---

<div class="post-metadata">

**Author:** ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)\
**Post date:** [August 23, 2018, 4:35pm UTC](https://discourse.processing.org/t/need-help-in-processing-function/2875/4 "2018-08-23T16:35:28Z")

</div>

> [@MxFxM](#):
>
> I learned that I am no longer allowed to give you the code

There are ways to help without giving out full code solutions. If you want to discuss the policy, please post in the [site feedback](https://discourse.processing.org/c/site-feedback) category instead of airing your grievances on other posts.

There is a conversation to be had, and I’m willing to listen, but this thread is not the place to have it.

---

<div class="post-metadata">

**Author:** ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)\
**Post date:** [August 23, 2018, 4:36pm UTC](https://discourse.processing.org/t/need-help-in-processing-function/2875/5 "2018-08-23T16:36:18Z")

</div>

@avro Which part of this are you stuck on?

The best advice I can give you is to [break your problem down into smaller steps](https://happycoding.io/tutorials/how-to/program) and then take those steps on one at a time. Which step are you stuck on?
