# How to add stroke/fill/colour options to svg shape

**URL:** <https://discourse.processing.org/t/how-to-add-stroke-fill-colour-options-to-svg-shape/2666>\
**Category:** Coding Questions\
**Created:** [August 15, 2018, 3:54pm UTC](https://discourse.processing.org/t/how-to-add-stroke-fill-colour-options-to-svg-shape/2666 "2018-08-15T15:54:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![12345](https://avatars.discourse-cdn.com/v4/letter/1/ec9cab/32.png) [@12345](https://discourse.processing.org/u/12345)\
**Post date:** [August 15, 2018, 3:54pm UTC](https://discourse.processing.org/t/how-to-add-stroke-fill-colour-options-to-svg-shape/2666/1 "2018-08-15T15:54:51Z")

</div>

Hi, I’m new to this and currently trying to figure out how to add stroke fill and colour options to my shape?

this is my code so far

---

<div class="post-metadata">

**Author:** ![WakeMeAtThree](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/wakemeatthree/32/38_2.png) [@WakeMeAtThree](https://discourse.processing.org/u/WakeMeAtThree)\
**Post date:** [August 15, 2018, 4:09pm UTC](https://discourse.processing.org/t/how-to-add-stroke-fill-colour-options-to-svg-shape/2666/2 "2018-08-15T16:09:04Z")

</div>

Hello!  
Please format your code by hightlighting your code and clicking on the `</>` button so that we can properly read it.

Just by looking at the title, I would guess you need to use `.disableStyle()` method on your PShape to be able to use fill(), stroke(), etc. on the shape.

---

<div class="post-metadata">

**Author:** ![12345](https://avatars.discourse-cdn.com/v4/letter/1/ec9cab/32.png) [@12345](https://discourse.processing.org/u/12345)\
**Post date:** [August 15, 2018, 4:33pm UTC](https://discourse.processing.org/t/how-to-add-stroke-fill-colour-options-to-svg-shape/2666/3 "2018-08-15T16:33:07Z")

</div>

Hi, I’ve formatted the code, thank you ill have a go now

---

<div class="post-metadata">

**Author:** ![dan850](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@dan850](https://discourse.processing.org/u/dan850)\
**Post date:** [August 16, 2018, 4:57am UTC](https://discourse.processing.org/t/how-to-add-stroke-fill-colour-options-to-svg-shape/2666/4 "2018-08-16T04:57:30Z")

</div>

@12345 Good luck on your project. i guess your code went missing when you were editing your post? Feel free to come back if needed and here is a guide that can help you with the problem solving process and asking questions in the future 😄 - [Guidelines—Tips on Asking Questions](https://discourse.processing.org/t/guidelines-tips-on-asking-questions/2147)
